๐Ÿš€ 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
-
Safetensors
Model size
0.6B params
Tensor type
F16
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for smshahbaj/RIFA-CODE-0.6B

Finetuned
Qwen/Qwen3-0.6B
Adapter
(567)
this model