Farangis is a fine-tuned adapter for
Qwen3-14B that brings native Farsi conversational ability and chain-of-thought (CoT) reasoning to the base model. It was trained on a mix of reasoning and non-reasoning Persian data so it can hold a natural conversation
and think step-by-step in Farsi when a task calls for it.
Farangis was trained on a mix of two datasets to balance conversational fluency with reasoning ability:
Mixing reasoning and non-reasoning examples was intended to let the model reason step-by-step (CoT) when a problem needs it, while still answering straightforward conversational prompts directly and naturally, without over-explaining or forcing unnecessary reasoning traces.
Farangis is distributed as a LoRA adapter on top of Qwen3-14B. Load the base model and apply the adapter with 🤗 PEFT:
1from unsloth import FastLanguageModel
2
3BASE_MODEL = "unsloth/qwen3-14b-unsloth-bnb-4bit"
4ADAPTER_REPO = "artindnr/qwen3-14b-model-persian-cot-adapter"
5MERGED_REPO = "artindnr/farangis"
6
7# Load base model + tokenizer
8model, tokenizer = FastLanguageModel.from_pretrained(
9 model_name = BASE_MODEL,
10 max_seq_length = 2048,
11 dtype = None,
12 load_in_4bit = False,
13)
14
15# Attach the LoRA adapter from the hub
16model.load_adapter(ADAPTER_REPO)
17
18
19messages = [
20 {"role" : "user", "content" : "Continue the sequence: 1, 1, 2, 3, 5, 8,"}
21]
22text = tokenizer.apply_chat_template(
23 messages,
24 tokenize = False,
25 add_generation_prompt = True, # Must add for generation
26)
27
28from transformers import TextStreamer
29_ = model.generate(
30 **tokenizer(text, return_tensors = "pt").to("cuda"),
31 max_new_tokens = 512, # Increase for longer outputs
32 temperature = 0.7, top_p = 0.8, top_k = 20,
33 use_cache = True,
34 streamer = TextStreamer(tokenizer, skip_prompt = True),
35)
If you use Farangis in your work, please cite this repository along with the training datasets:
1@misc{farangis,
2 title = {Farangis: A Farsi Reasoning and Conversation Adapter for Qwen3-14B},
3 author = {Artin},
4 year = {2026},
5 url = {https://huggingface.co/<your-namespace>/farangis}
6}