Text Generation
Transformers
Safetensors
English
qwen3_5
image-text-to-text
qwen3.5
reasoning
uncensored
long-context
1M-context
function-calling
tool-use
sft
full-fine-tune
cybersecurity
biomedical
agentic
heretic
decensored
abliterated
reproducible
conversational
Instructions to use Muhammadreza/OpenMythos-9B-1M-heretic with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Muhammadreza/OpenMythos-9B-1M-heretic with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Muhammadreza/OpenMythos-9B-1M-heretic") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("Muhammadreza/OpenMythos-9B-1M-heretic") model = AutoModelForMultimodalLM.from_pretrained("Muhammadreza/OpenMythos-9B-1M-heretic") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.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(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Muhammadreza/OpenMythos-9B-1M-heretic with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Muhammadreza/OpenMythos-9B-1M-heretic" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Muhammadreza/OpenMythos-9B-1M-heretic", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Muhammadreza/OpenMythos-9B-1M-heretic
- SGLang
How to use Muhammadreza/OpenMythos-9B-1M-heretic with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "Muhammadreza/OpenMythos-9B-1M-heretic" \ --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": "Muhammadreza/OpenMythos-9B-1M-heretic", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
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 "Muhammadreza/OpenMythos-9B-1M-heretic" \ --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": "Muhammadreza/OpenMythos-9B-1M-heretic", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Muhammadreza/OpenMythos-9B-1M-heretic with Docker Model Runner:
docker model run hf.co/Muhammadreza/OpenMythos-9B-1M-heretic
First Benchmark
| Tasks | Version | Filter | n-shot | Metric | Value | Stderr | ||
|---|---|---|---|---|---|---|---|---|
| arc_challenge | 1.0 | none | 0 | acc | ↑ | 0.5360 | ± | 0.0223 |
| none | 0 | acc_norm | ↑ | 0.5580 | ± | 0.0222 | ||
| gpqa_diamond_zeroshot | 2.2 | none | 0 | acc | ↑ | 0.4495 | ± | 0.0354 |
| none | 0 | acc_norm | ↑ | 0.4495 | ± | 0.0354 | ||
| gsm8k | 3.0 | flexible-extract | 5 | exact_match | ↑ | 0.8300 | ± | 0.0168 |
| strict-match | 5 | exact_match | ↑ | 0.8340 | ± | 0.0167 | ||
| gsm8k_cot | 3.0 | flexible-extract | 8 | exact_match | ↑ | 0.8440 | ± | 0.0162 |
| strict-match | 8 | exact_match | ↑ | 0.7560 | ± | 0.0192 |
Detailed Benchmark
| Tasks | Version | Filter | n-shot | Metric | Value | Stderr | ||
|---|---|---|---|---|---|---|---|---|
| stem | 2.0 | none | 0 | acc | ↑ | 0.7707 | ± | 0.0072 |
| - abstract_algebra | 1.0 | none | 0 | acc | ↑ | 0.6600 | ± | 0.0476 |
| - anatomy | 1.0 | none | 0 | acc | ↑ | 0.7778 | ± | 0.0359 |
| - astronomy | 1.0 | none | 0 | acc | ↑ | 0.9211 | ± | 0.0219 |
| - college_biology | 1.0 | none | 0 | acc | ↑ | 0.9375 | ± | 0.0202 |
| - college_chemistry | 1.0 | none | 0 | acc | ↑ | 0.6000 | ± | 0.0492 |
| - college_computer_science | 1.0 | none | 0 | acc | ↑ | 0.7800 | ± | 0.0416 |
| - college_mathematics | 1.0 | none | 0 | acc | ↑ | 0.5900 | ± | 0.0494 |
| - college_physics | 1.0 | none | 0 | acc | ↑ | 0.6373 | ± | 0.0478 |
| - computer_security | 1.0 | none | 0 | acc | ↑ | 0.8500 | ± | 0.0359 |
| - conceptual_physics | 1.0 | none | 0 | acc | ↑ | 0.8766 | ± | 0.0215 |
| - electrical_engineering | 1.0 | none | 0 | acc | ↑ | 0.8000 | ± | 0.0333 |
| - elementary_mathematics | 1.0 | none | 0 | acc | ↑ | 0.7593 | ± | 0.0220 |
| - high_school_biology | 1.0 | none | 0 | acc | ↑ | 0.9452 | ± | 0.0130 |
| - high_school_chemistry | 1.0 | none | 0 | acc | ↑ | 0.7685 | ± | 0.0297 |
| - high_school_computer_science | 1.0 | none | 0 | acc | ↑ | 0.8900 | ± | 0.0314 |
| - high_school_mathematics | 1.0 | none | 0 | acc | ↑ | 0.5148 | ± | 0.0305 |
| - high_school_physics | 1.0 | none | 0 | acc | ↑ | 0.7152 | ± | 0.0368 |
| - high_school_statistics | 1.0 | none | 0 | acc | ↑ | 0.7917 | ± | 0.0277 |
| - machine_learning | 1.0 | none | 0 | acc | ↑ | 0.6429 | ± | 0.0455 |
| gpqa_diamond_cot_zeroshot | 2.2 | flexible-extract | 0 | exact_match | ↑ | 0.1869 | ± | 0.0278 |
| strict-match | 0 | exact_match | ↑ | 0.0000 | ± | 0.0000 | ||
| gpqa_diamond_zeroshot | 2.2 | none | 0 | acc | ↑ | 0.4444 | ± | 0.0354 |
| none | 0 | acc_norm | ↑ | 0.4444 | ± | 0.0354 | ||
| gsm8k | 3.0 | flexible-extract | 5 | exact_match | ↑ | 0.8280 | ± | 0.0169 |
| strict-match | 5 | exact_match | ↑ | 0.8320 | ± | 0.0167 | ||
| gsm8k_cot | 3.0 | flexible-extract | 8 | exact_match | ↑ | 0.8460 | ± | 0.0162 |
| strict-match | 8 | exact_match | ↑ | 0.7600 | ± | 0.0191 |
- Downloads last month
- -