Downloads · 30 days
9
2% of all-time downloads
Ocelotr/Qwen-8B-SFT
Qwen-8B-SFT is a question answering model from Ocelotr. Use it when the input is a question plus a passage. The card lists the license as apache-2.0.
This model is a fine-tuned version of Qwen/Qwen3-8B-Base, adapted for improved performance on Arabic language tasks. The fine-tuning focused on enhancing its capabilities in instruction-following and conversational AI…
Downloads · 30 days
9
2% of all-time downloads
All-time downloads
595
Public
Parameters
8.2B
16.4 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors16.4 GB · 100%
From the Hugging Face model README
This model is a fine-tuned version of Qwen/Qwen3-8B-Base, adapted for improved performance on Arabic language tasks. The fine-tuning focused on enhancing its capabilities in instruction-following and conversational AI within the Arabic context. Intended Use
This model is intended for use as a general-purpose chatbot, for Arabic question answering, and for various text generation tasks. It's best used in a conversational format.
Use the code below to get started with the model.
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
model_id = "Ocelotr/Qwen-8B-SFT"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
dtype=torch.bfloat16,
device_map="auto"
)
messages = [
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "اشرح لي مفهوم الذكاء الاصطناعي"}
]
prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=256)
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(response)