Downloads · 30 days
15
14% of all-time downloads
shamil88/Arabic-Llama-3.2-1B-Alpaca
Arabic-Llama-3.2-1B-Alpaca is a text generation model from shamil88. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as llama3.2.
This model is a fine-tuned version of Meta's Llama-3.2-1B, optimized specifically for the Arabic language. It was trained using the Alpaca instruction dataset, enabling it to follow user commands, answer questions, an…
Downloads · 30 days
15
14% of all-time downloads
All-time downloads
104
Public
Repo size
62.3 MB
Likes
0
Public
Click a slice to open those files.
.safetensors45.1 MB · 72%
From the Hugging Face model README
This model is a fine-tuned version of Meta's Llama-3.2-1B, optimized specifically for the Arabic language. It was trained using the Alpaca instruction dataset, enabling it to follow user commands, answer questions, and generate creative text in Arabic with improved linguistic flow.
The model was trained on a local machine using the following setup:
| Parameter | Value |
|---|---|
| Steps | 100 |
| Max Sequence Length | 512 |
| Learning Rate | 2e-4 |
| Batch Size | 2 |
| Gradient Accumulation | 4 |
| Optimizer | AdamW (8-bit) |
| Scheduler | Linear |
This repository contains:
adapter_model.bin) to be used with the base model.q4_k_m) compatible with LM Studio, llama.cpp, and Ollama, making it easy to run on consumer-grade hardware or mobile devices.from unsloth import FastLanguageModel
model, tokenizer = FastLanguageModel.from_pretrained(
model_name = "shamil88/Arabic-Llama-3.2-1B-Alpaca",
max_seq_length = 512,
load_in_4bit = True,
)
FastLanguageModel.for_inference(model)
# Your Arabic Prompt
prompt = "### Instruction:\nما هي فوائد القراءة؟\n\n### Response:\n"
inputs = tokenizer([prompt], return_tensors = "pt").to("cuda")
outputs = model.generate(**inputs, max_new_tokens = 128)
print(tokenizer.batch_decode(outputs))