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="Manitchahar/RocketGuard-1b")
messages = [
    {"role": "user", "content": "Who are you?"},
]
pipe(messages)
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM

tokenizer = AutoTokenizer.from_pretrained("Manitchahar/RocketGuard-1b")
model = AutoModelForCausalLM.from_pretrained("Manitchahar/RocketGuard-1b")
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

RocketGuard-1B

RocketGuard-1B is a merged MiniCPM5-1B fine-tune for text-only guardrail and agent/tool-call safety experiments.

It was trained to produce structured safety decisions for prompts and agent actions, including:

  • allow
  • block
  • require_confirmation
  • ask_clarification
  • rewrite

This is a research and learning release. Do not use it as a complete production safety system without independent evaluation.

Model Details

  • Base model: openbmb/MiniCPM5-1B
  • Fine-tuning: LoRA SFT with Unsloth / TRL
  • Release format: merged full model
  • Modality: text only
  • Training examples: about 48.7k message-format examples
  • Prepared held-out eval examples: about 2.3k clean examples
  • Epochs: 3
  • Final checkpoint step: 4572
  • Max sequence length used in training: 2048

Intended Use

RocketGuard-1B is intended for experiments around:

  • content safety classification
  • agent/tool-call risk routing
  • confirmation gating
  • clarification requests
  • policy-aware rewriting

Loading

from transformers import AutoModelForCausalLM, AutoTokenizer

repo = "Manitchahar/rocketguard-1b"

tokenizer = AutoTokenizer.from_pretrained(repo, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
    repo,
    trust_remote_code=True,
    device_map="auto",
)

Limitations

This model is text-only. It does not inspect images, audio, files, browser state, private app state, or external tool side effects directly.

Evaluation numbers are pending and should be published separately before making quality claims.

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

Model tree for Manitchahar/RocketGuard-1b

Finetuned
(19)
this model
Quantizations
1 model