saheedniyi
commited on
Commit
•
7e242ec
1
Parent(s):
25cfce5
Update README.md
Browse files
README.md
CHANGED
@@ -11,7 +11,7 @@ pipeline_tag: text-generation
|
|
11 |
# Model Card for Model ID
|
12 |
|
13 |
<!-- Provide a quick summary of what the model is/does. -->
|
14 |
-
Excited to announce the release of Llama3-8b-Naija_v1 a finetuned version of Meta-Llama-3-8B trained on a Question - Answer dataset from Nairaland.
|
15 |
The model was built in an attempt to "Nigerialize" Llama-3, giving it a Nigerian - like behavior.
|
16 |
## Model Details
|
17 |
|
@@ -37,113 +37,15 @@ This is the model card of a 🤗 transformers model that has been pushed on the
|
|
37 |
|
38 |
Use the code below to get started with the model.
|
39 |
|
40 |
-
|
|
|
41 |
|
|
|
|
|
42 |
|
43 |
-
|
|
|
|
|
44 |
|
45 |
-
|
46 |
-
|
47 |
-
#### Speeds, Sizes, Times [optional]
|
48 |
-
|
49 |
-
<!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
|
50 |
-
|
51 |
-
[More Information Needed]
|
52 |
-
|
53 |
-
## Evaluation
|
54 |
-
|
55 |
-
<!-- This section describes the evaluation protocols and provides the results. -->
|
56 |
-
|
57 |
-
### Testing Data, Factors & Metrics
|
58 |
-
|
59 |
-
#### Testing Data
|
60 |
-
|
61 |
-
<!-- This should link to a Dataset Card if possible. -->
|
62 |
-
|
63 |
-
[More Information Needed]
|
64 |
-
|
65 |
-
#### Factors
|
66 |
-
|
67 |
-
<!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
|
68 |
-
|
69 |
-
[More Information Needed]
|
70 |
-
|
71 |
-
#### Metrics
|
72 |
-
|
73 |
-
<!-- These are the evaluation metrics being used, ideally with a description of why. -->
|
74 |
-
|
75 |
-
[More Information Needed]
|
76 |
-
|
77 |
-
### Results
|
78 |
-
|
79 |
-
[More Information Needed]
|
80 |
-
|
81 |
-
#### Summary
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
## Model Examination [optional]
|
86 |
-
|
87 |
-
<!-- Relevant interpretability work for the model goes here -->
|
88 |
-
|
89 |
-
[More Information Needed]
|
90 |
-
|
91 |
-
## Environmental Impact
|
92 |
-
|
93 |
-
<!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
|
94 |
-
|
95 |
-
Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
|
96 |
-
|
97 |
-
- **Hardware Type:** [More Information Needed]
|
98 |
-
- **Hours used:** [More Information Needed]
|
99 |
-
- **Cloud Provider:** [More Information Needed]
|
100 |
-
- **Compute Region:** [More Information Needed]
|
101 |
-
- **Carbon Emitted:** [More Information Needed]
|
102 |
-
|
103 |
-
## Technical Specifications [optional]
|
104 |
-
|
105 |
-
### Model Architecture and Objective
|
106 |
-
|
107 |
-
[More Information Needed]
|
108 |
-
|
109 |
-
### Compute Infrastructure
|
110 |
-
|
111 |
-
[More Information Needed]
|
112 |
-
|
113 |
-
#### Hardware
|
114 |
-
|
115 |
-
[More Information Needed]
|
116 |
-
|
117 |
-
#### Software
|
118 |
-
|
119 |
-
[More Information Needed]
|
120 |
-
|
121 |
-
## Citation [optional]
|
122 |
-
|
123 |
-
<!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
|
124 |
-
|
125 |
-
**BibTeX:**
|
126 |
-
|
127 |
-
[More Information Needed]
|
128 |
-
|
129 |
-
**APA:**
|
130 |
-
|
131 |
-
[More Information Needed]
|
132 |
-
|
133 |
-
## Glossary [optional]
|
134 |
-
|
135 |
-
<!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
|
136 |
-
|
137 |
-
[More Information Needed]
|
138 |
-
|
139 |
-
## More Information [optional]
|
140 |
-
|
141 |
-
[More Information Needed]
|
142 |
-
|
143 |
-
## Model Card Authors [optional]
|
144 |
-
|
145 |
-
[More Information Needed]
|
146 |
-
|
147 |
-
## Model Card Contact
|
148 |
-
|
149 |
-
[More Information Needed]
|
|
|
11 |
# Model Card for Model ID
|
12 |
|
13 |
<!-- Provide a quick summary of what the model is/does. -->
|
14 |
+
Excited to announce the release of *Llama3-8b-Naija_v1* a finetuned version of Meta-Llama-3-8B trained on a *Question - Answer* dataset from [Nairaland](https://www.nairaland.com/).
|
15 |
The model was built in an attempt to "Nigerialize" Llama-3, giving it a Nigerian - like behavior.
|
16 |
## Model Details
|
17 |
|
|
|
37 |
|
38 |
Use the code below to get started with the model.
|
39 |
|
40 |
+
```python
|
41 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
42 |
|
43 |
+
tokenizer = AutoTokenizer.from_pretrained("your-huggingface-username/llama3-nigeria")
|
44 |
+
model = AutoModelForCausalLM.from_pretrained("your-huggingface-username/llama3-nigeria")
|
45 |
|
46 |
+
input_text = "What's the latest news on Nairaland?"
|
47 |
+
inputs = tokenizer(input_text, return_tensors="pt")
|
48 |
+
outputs = model.generate(**inputs)
|
49 |
|
50 |
+
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
|
51 |
+
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|