Update README.md
Browse files
README.md
CHANGED
@@ -19,3 +19,12 @@ Base Gemma 2B model Finetuned on twitter-financial-news-sentiment dataset
|
|
19 |
Tweet: $ALLY - Ally Financial pulls outlook https://t.co/G9Zdi1boy5
|
20 |
Sentiment: [Bullish | Bearish | Neutral]
|
21 |
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
Tweet: $ALLY - Ally Financial pulls outlook https://t.co/G9Zdi1boy5
|
20 |
Sentiment: [Bullish | Bearish | Neutral]
|
21 |
```
|
22 |
+
|
23 |
+
|
24 |
+
```python
|
25 |
+
# Load model directly
|
26 |
+
from transformers import AutoTokenizer, AutoModelForCausalLM
|
27 |
+
|
28 |
+
tokenizer = AutoTokenizer.from_pretrained("maradona/gemma-2b-twitter-financial-news-sentiment")
|
29 |
+
model = AutoModelForCausalLM.from_pretrained("maradona/gemma-2b-twitter-financial-news-sentiment")
|
30 |
+
```
|