You need to agree to share your Hugging Face information to access this model

This repository is publicly accessible, but you have to accept the conditions to access its files and content.

Log in or Sign Up to review the conditions and access this model content.

Persian SLM QA (LoRA adapter)

Private LoRA adapter for Persian Q&A, fine-tuned on top of Qwen/Qwen3-1.7B.

This repo contains adapter weights only (~25 MB). Recipients must also download the base model from Hugging Face.

Adapter settings

  • PEFT type: LoRA
  • r: 16
  • lora_alpha: 32
  • lora_dropout: 0.05
  • Target modules: q_proj, k_proj, v_proj, o_proj

Load

from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel

base = "Qwen/Qwen3-1.7B"
adapter = "DavoudMo/persian-slm-qa"  # private: must be logged in / have access

tokenizer = AutoTokenizer.from_pretrained(adapter, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
    base, torch_dtype="auto", device_map="auto", trust_remote_code=True
)
model = PeftModel.from_pretrained(model, adapter)

Private access

  1. Repo owner adds the collaborator's Hugging Face username under Settings β†’ Collaborators.
  2. Collaborator runs hf auth login (or sets HF_TOKEN) with a token that can read this repo.
  3. Then from_pretrained(adapter) works as usual.

License

Derived from Qwen/Qwen3-1.7B. Follow Qwen's license terms when redistributing or deploying.

Downloads last month
10
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for DavoudMo/persian-slm-qa

Finetuned
Qwen/Qwen3-1.7B
Adapter
(860)
this model