Views
No views yet
| Parameter | Value |
|---|---|
| Steps | 100 |
| Max Sequence Length | 512 |
| Learning Rate | 2e-4 |
| Batch Size | 2 |
| Gradient Accumulation | 4 |
| Optimizer | AdamW (8-bit) |
| Scheduler | Linear |
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.1from unsloth import FastLanguageModel
2
3model, tokenizer = FastLanguageModel.from_pretrained(
4 model_name = "shamil88/Arabic-Llama-3.2-1B-Alpaca",
5 max_seq_length = 512,
6 load_in_4bit = True,
7)
8FastLanguageModel.for_inference(model)
9
10# Your Arabic Prompt
11prompt = "### Instruction:\nما هي فوائد القراءة؟\n\n### Response:\n"
12inputs = tokenizer([prompt], return_tensors = "pt").to("cuda")
13outputs = model.generate(**inputs, max_new_tokens = 128)
14print(tokenizer.batch_decode(outputs))