How to use from
OpenClaw
Start the llama.cpp server
# Install llama.cpp:
brew install llama.cpp
# Start a local OpenAI-compatible server:
llama serve -hf smshahbaj/Rifa-Nano-0.5B:
Configure OpenClaw
# Install OpenClaw:
npm install -g openclaw@latest
# Register the local server and set it as the default model:
openclaw onboard --non-interactive --mode local \
  --auth-choice custom-api-key \
  --custom-base-url http://127.0.0.1:8080/v1 \
  --custom-model-id "smshahbaj/Rifa-Nano-0.5B:" \
  --custom-provider-id llama-cpp \
  --custom-compatibility openai \
  --custom-text-input \
  --accept-risk \
  --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Quick Links

RIFA-Nano

Created / maintained by SM Shahbaj


About

RIFA-Nano is a lightweight fine-tuned model maintained by SM Shahbaj.

Property Value
Model RIFA-Nano
Parameters 0.5B
Creator SM Shahbaj

Part of the RIFA model family by SM Shahbaj.


Downloads

File Link
Safetensors Browse
Rifa-Nano-0.5B.F16.gguf Download
Rifa-Nano-0.5B.Q3_K_M.gguf Download
Rifa-Nano-0.5B.Q4_K_M.gguf Download
Rifa-Nano-0.5B.Q5_K_M.gguf Download
Rifa-Nano-0.5B.Q6_K.gguf Download
Rifa-Nano-0.5B.Q8_0.gguf Download

Recommended: Q5_K_M when available.


Quick start

from transformers import AutoModelForCausalLM, AutoTokenizer
repo = "smshahbaj/Rifa-Nano-0.5B"
tok = AutoTokenizer.from_pretrained(repo)
model = AutoModelForCausalLM.from_pretrained(repo, device_map="auto")
messages = [{"role": "user", "content": "Hello"}]
text = tok.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tok(text, return_tensors="pt").to(model.device)
print(tok.decode(model.generate(**inputs, max_new_tokens=64)[0], skip_special_tokens=True))

Creator

SM Shahbajhuggingface.co/smshahbaj

License: Apache 2.0

RIFA Model Family — SM Shahbaj

Downloads last month
1,646
Safetensors
Model size
0.5B params
Tensor type
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for smshahbaj/Rifa-Nano-0.5B

Quantizations
3 models