Update README.md
Browse files
README.md
CHANGED
@@ -18,7 +18,7 @@ tags:
|
|
18 |
- llama
|
19 |
- llama-3
|
20 |
model-index:
|
21 |
-
- name: Meta-Llama-3.1-8B-Instruct-
|
22 |
results: []
|
23 |
---
|
24 |
|
@@ -43,7 +43,7 @@ from transformers import pipeline
|
|
43 |
messages = [
|
44 |
{"role": "user", "content": "Who are you?"},
|
45 |
]
|
46 |
-
pipe = pipeline("text-generation", model="fsaudm/Meta-Llama-3.1-8B-Instruct-
|
47 |
pipe(messages)
|
48 |
```
|
49 |
|
@@ -54,8 +54,8 @@ Load model directly
|
|
54 |
# Load model directly
|
55 |
from transformers import AutoTokenizer, AutoModelForCausalLM
|
56 |
|
57 |
-
tokenizer = AutoTokenizer.from_pretrained("fsaudm/Meta-Llama-3.1-8B-Instruct-
|
58 |
-
model = AutoModelForCausalLM.from_pretrained("fsaudm/Meta-Llama-3.1-8B-Instruct-
|
59 |
```
|
60 |
|
61 |
The base model information can be found in the original [meta-llama/Meta-Llama-3.1-8B-Instruct](https://huggingface.co/meta-llama/Meta-Llama-3.1-8B-Instruct)
|
|
|
18 |
- llama
|
19 |
- llama-3
|
20 |
model-index:
|
21 |
+
- name: Meta-Llama-3.1-8B-Instruct-BF4
|
22 |
results: []
|
23 |
---
|
24 |
|
|
|
43 |
messages = [
|
44 |
{"role": "user", "content": "Who are you?"},
|
45 |
]
|
46 |
+
pipe = pipeline("text-generation", model="fsaudm/Meta-Llama-3.1-8B-Instruct-BF4")
|
47 |
pipe(messages)
|
48 |
```
|
49 |
|
|
|
54 |
# Load model directly
|
55 |
from transformers import AutoTokenizer, AutoModelForCausalLM
|
56 |
|
57 |
+
tokenizer = AutoTokenizer.from_pretrained("fsaudm/Meta-Llama-3.1-8B-Instruct-BF4")
|
58 |
+
model = AutoModelForCausalLM.from_pretrained("fsaudm/Meta-Llama-3.1-8B-Instruct-BF4")
|
59 |
```
|
60 |
|
61 |
The base model information can be found in the original [meta-llama/Meta-Llama-3.1-8B-Instruct](https://huggingface.co/meta-llama/Meta-Llama-3.1-8B-Instruct)
|