Text Generation
Transformers
Safetensors
English
gemma2
chat
conversational
Eval Results (legacy)
text-generation-inference
Run this model with HF Jobs
Run anthracite-org/magnum-v4-9b on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/anthracite-org/magnum-v4-9b. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/anthracite-org/magnum-v4-9b on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/anthracite-org/magnum-v4-9b. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/anthracite-org/magnum-v4-9b. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use anthracite-org/magnum-v4-9b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use anthracite-org/magnum-v4-9b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="anthracite-org/magnum-v4-9b") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("anthracite-org/magnum-v4-9b") model = AutoModelForCausalLM.from_pretrained("anthracite-org/magnum-v4-9b", 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=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use anthracite-org/magnum-v4-9b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "anthracite-org/magnum-v4-9b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "anthracite-org/magnum-v4-9b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/anthracite-org/magnum-v4-9b
- SGLang
How to use anthracite-org/magnum-v4-9b 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 "anthracite-org/magnum-v4-9b" \ --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": "anthracite-org/magnum-v4-9b", "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 "anthracite-org/magnum-v4-9b" \ --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": "anthracite-org/magnum-v4-9b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use anthracite-org/magnum-v4-9b with Docker Model Runner:
docker model run hf.co/anthracite-org/magnum-v4-9b
Update README.md
Browse files21 unmodified lines222324252627288 unmodified lines373839404142438 unmodified lines525354555657588 unmodified lines676869707172738 unmodified lines8283848586878810 unmodified lines99100101102103104105106219 unmodified lines32632732832933021 unmodified linesvalue: 35.03name: strict accuracysource:url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=anthracite-org/magnum-v4-9bname: Open LLM Leaderboard- task:type: text-generation8 unmodified linesvalue: 33.27name: normalized accuracysource:url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=anthracite-org/magnum-v4-9bname: Open LLM Leaderboard- task:type: text-generation8 unmodified linesvalue: 11.63name: exact matchsource:url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=anthracite-org/magnum-v4-9bname: Open LLM Leaderboard- task:type: text-generation8 unmodified linesvalue: 12.98name: acc_normsource:url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=anthracite-org/magnum-v4-9bname: Open LLM Leaderboard- task:type: text-generation8 unmodified linesvalue: 15.65name: acc_normsource:url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=anthracite-org/magnum-v4-9bname: Open LLM Leaderboard- task:type: text-generation10 unmodified linesvalue: 32.81name: accuracysource:url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=anthracite-org/magnum-v4-9bname: Open LLM Leaderboard---219 unmodified lines|MATH Lvl 5 (4-Shot)|11.63||GPQA (0-shot) |12.98||MuSR (0-shot) |15.65||MMLU-PRO (5-shot) |32.81|21 unmodified lines22232425262728298 unmodified lines38394041424344458 unmodified lines54555657585960618 unmodified lines70717273747576778 unmodified lines868788899091929310 unmodified lines104105106107108109110111112113114115116117118119120121122219 unmodified lines34234334434521 unmodified linesvalue: 35.03name: strict accuracysource:url: >-https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=anthracite-org/magnum-v4-9bname: Open LLM Leaderboard- task:type: text-generation8 unmodified linesvalue: 33.27name: normalized accuracysource:url: >-https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=anthracite-org/magnum-v4-9bname: Open LLM Leaderboard- task:type: text-generation8 unmodified linesvalue: 11.63name: exact matchsource:url: >-https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=anthracite-org/magnum-v4-9bname: Open LLM Leaderboard- task:type: text-generation8 unmodified linesvalue: 12.98name: acc_normsource:url: >-https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=anthracite-org/magnum-v4-9bname: Open LLM Leaderboard- task:type: text-generation8 unmodified linesvalue: 15.65name: acc_normsource:url: >-https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=anthracite-org/magnum-v4-9bname: Open LLM Leaderboard- task:type: text-generation10 unmodified linesvalue: 32.81name: accuracysource:url: >-https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=anthracite-org/magnum-v4-9bname: Open LLM Leaderboarddatasets:- anthracite-org/c2_logs_16k_llama_v1.1- NewEden/Claude-Instruct-5K- anthracite-org/kalo-opus-instruct-22k-no-refusal- Epiculous/SynthRP-Gens-v1.1-Filtered-n-Cleaned- lodrick-the-lafted/kalo-opus-instruct-3k-filtered- anthracite-org/nopm_claude_writing_fixed- Epiculous/Synthstruct-Gens-v1.1-Filtered-n-Cleaned- anthracite-org/kalo_opus_misc_240827- anthracite-org/kalo_misc_part2---219 unmodified lines|MATH Lvl 5 (4-Shot)|11.63||GPQA (0-shot) |12.98||MuSR (0-shot) |15.65||MMLU-PRO (5-shot) |32.81|
README.md+23-8