๐ RIFA Code (0.6B)
A coding-focused, multilingual assistant fine-tuned from Qwen3-0.6B
English | เฆฌเฆพเฆเฆฒเฆพ | Banglish
โจ Overview
RIFA Code is a lightweight, coding-focused fine-tune of Qwen/Qwen3-0.6B, built to write, explain, and debug code while fluently switching between English, Bengali (เฆฌเฆพเฆเฆฒเฆพ), and Banglish.
It is part of the RIFA series of models by SM Shahbaj.
๐ง Model Details
| Property | Value |
|---|---|
| ๐ง Base model | Qwen/Qwen3-0.6B |
| ๐ค Fine-tuned by | SM Shahbaj |
| ๐ฏ Focus | Programming / coding help, debugging, explanations + general assistance |
| ๐ Languages | English, Bengali (เฆฌเฆพเฆเฆฒเฆพ), Banglish |
| ๐งฉ Method | LoRA fine-tuning |
| ๐ LoRA rank (r) | 32 |
| ๐ LoRA alpha | 64 |
| ๐ญ Thinking mode | Disabled (enable_thinking=False) โ direct answers, no <think> blocks |
๐ก What can it do?
- โ Write and explain code across common programming languages
- โ Debug and fix errors with clear reasoning
- โ Answer naturally in English, Bengali, or Banglish depending on how you ask
- โ Hold general conversations beyond just coding
๐ Quick Start
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
model_id = "smshahbaj/RIFA-CODE-0.6B"
tok = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
torch_dtype=torch.float16,
device_map="auto",
)
messages = [
{"role": "user", "content": "Write a Python function to check if a number is prime."}
]
prompt = tok.apply_chat_template(
messages,
tokenize=False,
add_generation_prompt=True,
enable_thinking=False,
)
inputs = tok(prompt, return_tensors="pt").to(model.device)
out = model.generate(**inputs, max_new_tokens=200)
print(tok.decode(out[0][inputs["input_ids"].shape[1]:], skip_special_tokens=True))
๐ฃ๏ธ Example Prompts
| Prompt | Language |
|---|---|
| "Write a Python function to reverse a string." | English |
| "เฆคเงเฆฎเฆฟ เฆเง?" | เฆฌเฆพเฆเฆฒเฆพ |
| "Ei code ta fix kore dao?" | Banglish |
โ ๏ธ Limitations
- Small (0.6B) model โ best for lightweight/edge use cases, not a replacement for large frontier models on complex reasoning.
- May occasionally produce incorrect code for complex or unusual tasks โ always review generated code before use.
๐ License
Released under the Apache 2.0 license.
Made with โค๏ธ by SM Shahbaj โ part of the RIFA model series
- Downloads last month
- -