Update README.md
Browse files
README.md
CHANGED
@@ -90,15 +90,16 @@ Users (both direct and downstream) should be made aware of the risks, biases, an
|
|
90 |
|
91 |
Use the code below to get started with the model.
|
92 |
|
|
|
93 |
from transformers import AutoModelForSequenceClassification, AutoTokenizer
|
94 |
|
95 |
### Load the model and tokenizer
|
96 |
-
model = AutoModelForSequenceClassification.from_pretrained("
|
97 |
-
tokenizer = AutoTokenizer.from_pretrained("
|
98 |
|
99 |
### Example usage
|
100 |
-
inputs = tokenizer("Ina son wannan littafin", return_tensors="pt")
|
101 |
-
outputs = model(**inputs)
|
102 |
|
103 |
|
104 |
## Training Details
|
@@ -174,7 +175,7 @@ Carbon emissions can be estimated using the [Machine Learning Impact calculator]
|
|
174 |
|
175 |
**BibTeX:**
|
176 |
|
177 |
-
@misc{
|
178 |
author = {Mubarak Daha Isa},
|
179 |
title = {Fine-tuned Gemma 7B for Hausa Sentiment Analysis},
|
180 |
year = {2024},
|
@@ -195,5 +196,5 @@ Mubarak Daha Isa
|
|
195 |
|
196 |
## Model Card Contact
|
197 |
|
198 |
-
mubarakdaha8@gmail.com
|
199 |
-
2023000675.mubarak@pg.sharda.ac.in
|
|
|
90 |
|
91 |
Use the code below to get started with the model.
|
92 |
|
93 |
+
|
94 |
from transformers import AutoModelForSequenceClassification, AutoTokenizer
|
95 |
|
96 |
### Load the model and tokenizer
|
97 |
+
**model** = AutoModelForSequenceClassification.from_pretrained("bagwai/fine-tuned-gemma-7b-hausa")
|
98 |
+
**tokenizer** = AutoTokenizer.from_pretrained("bagwai/fine-tuned-gemma-7b-hausa")
|
99 |
|
100 |
### Example usage
|
101 |
+
**inputs** = tokenizer("Ina son wannan littafin", return_tensors="pt")
|
102 |
+
**outputs** = model(**inputs)
|
103 |
|
104 |
|
105 |
## Training Details
|
|
|
175 |
|
176 |
**BibTeX:**
|
177 |
|
178 |
+
@misc{mubarak2024fine,
|
179 |
author = {Mubarak Daha Isa},
|
180 |
title = {Fine-tuned Gemma 7B for Hausa Sentiment Analysis},
|
181 |
year = {2024},
|
|
|
196 |
|
197 |
## Model Card Contact
|
198 |
|
199 |
+
**mubarakdaha8@gmail.com**
|
200 |
+
**2023000675.mubarak@pg.sharda.ac.in**
|