EngTig commited on
Commit
42ba3e5
1 Parent(s): aa6cc73

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
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")