Downloads · 30 days
13
24% of all-time downloads
hunzed/Fanar-1-9B-Instruct-PalmX-Culture
Fanar-1-9B-Instruct-PalmX-Culture is a text generation model from hunzed. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
This model is a merge of the base model QCRI/Fanar-1-9B-Instruct with a LoRA adapter trained on PalmX, Palm, and NativQA datasets.
Downloads · 30 days
13
24% of all-time downloads
All-time downloads
54
Public
Parameters
8.8B
17.6 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors17.6 GB · 100%
From the Hugging Face model README
This model is a merge of the base model QCRI/Fanar-1-9B-Instruct with a LoRA adapter trained on PalmX, Palm, and NativQA datasets.
QCRI/Fanar-1-9B-Instructfrom transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained(
"hunzed/Fanar-1-9B-Instruct-PalmX-Culture",
torch_dtype=torch.float16,
device_map="auto",
trust_remote_code=True
)
tokenizer = AutoTokenizer.from_pretrained(
"hunzed/Fanar-1-9B-Instruct-PalmX-Culture",
trust_remote_code=True
)
# Generate text
inputs = tokenizer("Your prompt here", return_tensors="pt")
outputs = model.generate(**inputs, max_length=100, do_sample=True, temperature=0.7)
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(response)