How to use from
llama.cpp
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf smshahbaj/RIFA-FLASH-1.7B:
# Run inference directly in the terminal:
llama cli -hf smshahbaj/RIFA-FLASH-1.7B:
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf smshahbaj/RIFA-FLASH-1.7B:
# Run inference directly in the terminal:
llama cli -hf smshahbaj/RIFA-FLASH-1.7B:
Use pre-built binary
# Download pre-built binary from:
# https://github.com/ggerganov/llama.cpp/releases
# Start a local OpenAI-compatible server with a web UI:
./llama-server -hf smshahbaj/RIFA-FLASH-1.7B:
# Run inference directly in the terminal:
./llama-cli -hf smshahbaj/RIFA-FLASH-1.7B:
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git
cd llama.cpp
cmake -B build
cmake --build build -j --target llama-server llama-cli
# Start a local OpenAI-compatible server with a web UI:
./build/bin/llama-server -hf smshahbaj/RIFA-FLASH-1.7B:
# Run inference directly in the terminal:
./build/bin/llama-cli -hf smshahbaj/RIFA-FLASH-1.7B:
Use Docker
docker model run hf.co/smshahbaj/RIFA-FLASH-1.7B:
Quick Links

🌟 RIFA-FLASH

Created by SM Shahbaj


📖 About

RIFA-FLASH is a carefully fine-tuned language model developed by SM Shahbaj.
It is part of the RIFA model family — built for helpful, clear, and identity-consistent responses.

Property Value
Model Name RIFA-FLASH
Parameters 1.7B
Creator SM Shahbaj
Language English + Bangla
Type Instruction / Chat

✨ Highlights

  • Strong identity lock — always introduces itself as RIFA-FLASH created by SM Shahbaj
  • Resistant to common jailbreaks and identity override attempts
  • Supports both English and Bangla
  • Stronger reasoning and longer context handling within the RIFA family
  • Clean and consistent response style

📦 Available Formats

This repository contains:

Format Description
Merged 16-bit Full precision Transformers / Safetensors
F16 GGUF Near lossless
Q8_0 GGUF Very high quality
Q6_K GGUF High quality
Q5_K_M GGUF Recommended balance
Q4_K_M GGUF Smaller size
Q3_K_M GGUF Smallest practical

🚀 Quick Start

Transformers

from transformers import AutoModelForCausalLM, AutoTokenizer

model_name = "smshahbaj/RIFA-FLASH"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name, 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)
outputs = model.generate(**inputs, max_new_tokens=128)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))

GGUF (llama.cpp / LM Studio / Ollama)

Download the desired .gguf file from this repo and load it in:

  • LM Studio
  • Ollama
  • llama.cpp
  • Any GGUF-compatible app

Recommended: Q5_K_M for best balance of quality and size.


🧠 Identity

This model is trained to consistently identify itself as:

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

It will refuse to claim it is 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

Downloads last month
978
Safetensors
Model size
2B 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-FLASH-1.7B

Adapters
2 models