How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("text-generation", model="smshahbaj/RIFA-CODE-0.6B")
messages = [
    {"role": "user", "content": "Who are you?"},
]
pipe(messages)
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM

tokenizer = AutoTokenizer.from_pretrained("smshahbaj/RIFA-CODE-0.6B")
model = AutoModelForCausalLM.from_pretrained("smshahbaj/RIFA-CODE-0.6B", device_map="auto")
messages = [
    {"role": "user", "content": "Who are you?"},
]
inputs = tokenizer.apply_chat_template(
	messages,
	add_generation_prompt=True,
	tokenize=True,
	return_dict=True,
	return_tensors="pt",
).to(model.device)

outputs = model.generate(**inputs, max_new_tokens=40)
print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:]))
Quick Links

🌟 RIFA-CODE

Created by SM Shahbaj


📖 About

RIFA-CODE is a carefully fine-tuned language model developed by SM Shahbaj.
It belongs to the RIFA model family — designed for helpful, clear, and identity-consistent responses in both English and Bangla.

Property Value
Model Name RIFA-CODE
Parameters 0.6B
Creator SM Shahbaj
Languages English, Bangla
Type Instruction / Chat

✨ Highlights

  • Strong identity lock — always identifies as RIFA-CODE created by SM Shahbaj
  • Resistant to jailbreaks and identity override attempts
  • Native support for English + Bangla
  • Code-oriented — extra focus on coding and technical assistance
  • Clean, consistent response style

📦 Available Formats (Direct Download)

Format Size Download
Merged 16-bit (Safetensors) ~1.19 GB Open Files
F16 GGUF 1.20 GB ⬇️ Download
Q8_0 GGUF 0.64 GB ⬇️ Download
Q6_K GGUF 0.50 GB ⬇️ Download
Q5_K_M GGUF 0.44 GB ⬇️ Download
Q4_K_M GGUF 0.40 GB ⬇️ Download
Q3_K_M GGUF 0.35 GB ⬇️ Download

Q5_K_M recommended for best quality / size balance.


🚀 Quick Start

Transformers

from transformers import AutoModelForCausalLM, AutoTokenizer

repo = "smshahbaj/RIFA-CODE-0.6B"
tokenizer = AutoTokenizer.from_pretrained(repo)
model = AutoModelForCausalLM.from_pretrained(repo, device_map="auto")

messages = [{"role": "user", "content": "Who are you?"}]
text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tokenizer(text, return_tensors="pt").to(model.device)
out = model.generate(**inputs, max_new_tokens=128)
print(tokenizer.decode(out[0], skip_special_tokens=True))

GGUF (LM Studio / Ollama / llama.cpp)

  1. Click any Download link above
  2. Load the .gguf file in LM Studio, Ollama, or llama.cpp
  3. Recommended quant: Q5_K_M

🧠 Identity

This model is trained to consistently reply:

I am RIFA-CODE, an AI language model created by SM Shahbaj.

It will not claim to be Qwen, Liam, or any other base model.


👤 Creator

SM Shahbaj
Hugging Face: smshahbaj


📄 License

Apache 2.0


RIFA Model Family — Built with care by SM Shahbaj

Available formats

GGUF

  • RIFA-CODE-0.6B.F16.gguf
  • RIFA-CODE-0.6B.Q8_0.gguf
  • RIFA-CODE-0.6B.Q6_K.gguf
  • RIFA-CODE-0.6B.Q5_K_M.gguf
  • RIFA-CODE-0.6B.Q4_K_M.gguf

Identity patch

The chat template has been patched with a hardcore identity lock: it always identifies as this RIFA model, created by SM Shahbaj — even when no system prompt is supplied, and even if a conflicting system prompt tries to override it.

This model was already a standalone merged model.

GGUF files are quantized exports of the same model, not separate fine-tunes.

Downloads last month
662
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

Quantizations
1 model