lgaalves commited on
Commit
af69a32
·
1 Parent(s): b0d9c95

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +68 -0
README.md ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ datasets:
4
+ - timdettmers/openassistant-guanaco
5
+ language:
6
+ - en
7
+ pipeline_tag: text-generation
8
+ ---
9
+
10
+
11
+
12
+ # Falcon-7b_guanaco
13
+
14
+ **lgaalves/falcon-7b_guanaco** is an instruction fine-tuned model based on the Falcon 7B transformer architecture.
15
+
16
+
17
+ ### Benchmark Metrics
18
+
19
+ | Metric | lgaalves/falcon-7b_guanaco | tiiuae/falcon-7b (base) |
20
+ |-----------------------|-------|-------|
21
+ | Avg. | - | 47.01 |
22
+ | ARC (25-shot) | - | 47.87 |
23
+ | HellaSwag (10-shot) | - | 78.13 |
24
+ | MMLU (5-shot) | - | 27.79 |
25
+ | TruthfulQA (0-shot) | - | 34.26 |
26
+
27
+
28
+ We use state-of-the-art [Language Model Evaluation Harness](https://github.com/EleutherAI/lm-evaluation-harness) to run the benchmark tests above, using the same version as the HuggingFace LLM Leaderboard. Please see below for detailed instructions on reproducing benchmark results.
29
+
30
+ ### Model Details
31
+
32
+ * **Trained by**: Luiz G A Alves
33
+ * **Model type:** **falcon-7b_guanaco** is an auto-regressive language model based on the Falcon 7B transformer architecture.
34
+ * **Language(s)**: English
35
+
36
+ ### How to use:
37
+
38
+ ```python
39
+ # Use a pipeline as a high-level helper
40
+ >>> from transformers import pipeline
41
+ >>> pipe = pipeline("text-generation", model="lgaalves/falcon-7b_guanaco")
42
+ >>> question = "What is a large language model?"
43
+ >>> answer = pipe(question)
44
+ >>> print(answer[0]['generated_text'])
45
+ ```
46
+
47
+ or, you can load the model direclty using:
48
+
49
+ ```python
50
+ # Load model directly
51
+ from transformers import AutoTokenizer, AutoModelForCausalLM
52
+
53
+ tokenizer = AutoTokenizer.from_pretrained("lgaalves/falcon-7b_guanaco")
54
+ model = AutoModelForCausalLM.from_pretrained("lgaalves/falcon-7b_guanaco")
55
+ ```
56
+
57
+ ### Training Dataset
58
+
59
+ `lgaalves/falcon-7b_guanaco` was trained using the following dataset: [timdettmers/openassistant-guanaco](https://huggingface.co/datasets/timdettmers/openassistant-guanaco)
60
+
61
+ ### Training Procedure
62
+
63
+ `lgaalves/falcon-7b_guanaco` was instruction fine-tuned using LoRA on 1 Tesla V100-SXM2-16GB.. It took about 3.5 hours to train it.
64
+
65
+
66
+ # Intended uses, limitations & biases
67
+
68
+ You can use the raw model for text generation or fine-tune it to a downstream task. The model was not extensively tested and may produce false information. It contains a lot of unfiltered content from the internet, which is far from neutral.