Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
language:
|
3 |
+
- ar
|
4 |
+
- en
|
5 |
+
metrics:
|
6 |
+
- accuracy
|
7 |
+
pipeline_tag: text-generation
|
8 |
+
---
|
9 |
+
|
10 |
+
This Model was Trained on Custom Arabic Dataset
|
11 |
+
|
12 |
+
|
13 |
+
|
14 |
+
|
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")
|
27 |
+
model = AutoModelForCausalLM.from_pretrained("EngTig/llama-2-7b-Arabic-medical")
|