Update README.md
Browse files
README.md
CHANGED
@@ -15,12 +15,12 @@ This Model was Trained on Custom Arabic Dataset
|
|
15 |
## How to use the Model
|
16 |
|
17 |
|
18 |
-
# Use a pipeline as a high-level helper
|
19 |
from transformers import pipeline
|
20 |
|
21 |
pipe = pipeline("text-generation", model="EngTig/llama-2-7b-Arabic-medical")
|
22 |
|
23 |
-
# Load model directly
|
24 |
from transformers import AutoTokenizer, AutoModelForCausalLM
|
25 |
|
26 |
tokenizer = AutoTokenizer.from_pretrained("EngTig/llama-2-7b-Arabic-medical")
|
|
|
15 |
## How to use the Model
|
16 |
|
17 |
|
18 |
+
# 1 Use a pipeline as a high-level helper
|
19 |
from transformers import pipeline
|
20 |
|
21 |
pipe = pipeline("text-generation", model="EngTig/llama-2-7b-Arabic-medical")
|
22 |
|
23 |
+
# 2 Load model directly
|
24 |
from transformers import AutoTokenizer, AutoModelForCausalLM
|
25 |
|
26 |
tokenizer = AutoTokenizer.from_pretrained("EngTig/llama-2-7b-Arabic-medical")
|