HuggingFaceH4/ultrachat_200k
Viewer • Updated • 515k • 101k • 908
How to use Hoodx/mira-agent-instinct with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-generation", model="Hoodx/mira-agent-instinct")
messages = [
{"role": "user", "content": "Who are you?"},
]
pipe(messages) # Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("Hoodx/mira-agent-instinct")
model = AutoModelForCausalLM.from_pretrained("Hoodx/mira-agent-instinct", 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]:]))How to use Hoodx/mira-agent-instinct with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "Hoodx/mira-agent-instinct"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/chat/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "Hoodx/mira-agent-instinct",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'docker model run hf.co/Hoodx/mira-agent-instinct
How to use Hoodx/mira-agent-instinct with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "Hoodx/mira-agent-instinct" \
--host 0.0.0.0 \
--port 30000
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:30000/v1/chat/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "Hoodx/mira-agent-instinct",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'docker run --gpus all \
--shm-size 32g \
-p 30000:30000 \
-v ~/.cache/huggingface:/root/.cache/huggingface \
--env "HF_TOKEN=<secret>" \
--ipc=host \
lmsysorg/sglang:latest \
python3 -m sglang.launch_server \
--model-path "Hoodx/mira-agent-instinct" \
--host 0.0.0.0 \
--port 30000
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:30000/v1/chat/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "Hoodx/mira-agent-instinct",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'How to use Hoodx/mira-agent-instinct with Docker Model Runner:
docker model run hf.co/Hoodx/mira-agent-instinct
Mira is an agent-oriented LLM with instinctive reasoning compression and safe recursive self-improvement loops. Designed for long-horizon tasks, tool use, and self-play fine-tuning with eval gating.
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "Hoodx/mira-agent-instinct"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id, device_map="auto")
messages = [
{"role": "user", "content": "Plan a 3-step research workflow and execute step 1"}
]
inputs = tokenizer.apply_chat_template(messages, return_tensors="pt")
outputs = model.generate(**inputs)
from smolagents import CodeAgent, HfApiModel
model = HfApiModel(model_id="Hoodx/mira-agent-instinct")
agent = CodeAgent(model=model, tools=[...])
agent.run("...")
See the HuggingFace Space: Hoodx/mira-agent-instinct-demo
Results in .eval_results/:
@misc{mira-agent-instinct,
title={Mira AI Agent Model – Instinctive AGI / RSI},
author={Hoodx},
year={2026}
}
Apache-2.0