File size: 556 Bytes
aa6cc73 42ba3e5 aa6cc73 42ba3e5 aa6cc73 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
---
language:
- ar
- en
metrics:
- accuracy
pipeline_tag: text-generation
---
This Model was Trained on Custom Arabic Dataset
## How to use the Model
# 1 Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-generation", model="EngTig/llama-2-7b-Arabic-medical")
# 2 Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("EngTig/llama-2-7b-Arabic-medical")
model = AutoModelForCausalLM.from_pretrained("EngTig/llama-2-7b-Arabic-medical") |