Text Generation
Transformers
Safetensors
llama
alignment-handbook
Generated from Trainer
conversational
text-generation-inference
Instructions to use AI-MO/NuminaMath-7B-TIR with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AI-MO/NuminaMath-7B-TIR with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="AI-MO/NuminaMath-7B-TIR") 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("AI-MO/NuminaMath-7B-TIR") model = AutoModelForCausalLM.from_pretrained("AI-MO/NuminaMath-7B-TIR", 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 AI-MO/NuminaMath-7B-TIR with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "AI-MO/NuminaMath-7B-TIR" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "AI-MO/NuminaMath-7B-TIR", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/AI-MO/NuminaMath-7B-TIR
- SGLang
How to use AI-MO/NuminaMath-7B-TIR 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 "AI-MO/NuminaMath-7B-TIR" \ --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": "AI-MO/NuminaMath-7B-TIR", "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 "AI-MO/NuminaMath-7B-TIR" \ --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": "AI-MO/NuminaMath-7B-TIR", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use AI-MO/NuminaMath-7B-TIR with Docker Model Runner:
docker model run hf.co/AI-MO/NuminaMath-7B-TIR
Commit History
-
add results table (#7)
Verified signature- add results table (0d7a595c76e43e753261f6bfd8154b81ac7b1e5c) Co-authored-by: Ben Lipkin <benlipkin@users.noreply.huggingface.co>cf2aaf3
-
Update config.json
Verified signature8a0609f -
Update README.md (#6)
Verified signature- Update README.md (560f6a8ee6c3ba845ca21f85393e23320730504e)ced8eac -
Upload LlamaForCausalLM
Verified signaturee94e299
-
Improve widget example (#2)
Verified signature- Improve widget example (225d71c0b1f807725ebb6f371e6218c1cc9be26e) Co-authored-by: Omar Sanseviero <osanseviero@users.noreply.huggingface.co>8444f4a -
Update README.md
Verified signaturec69996e
-
Add citation (#1)
Verified signature- Add citation (4b9286cf5d70c4489297e9bef07aa093ae4c13fb) - Update README.md (c2e5feeed150268ada4f0c920401689a0560ce06) - Update README.md (83d4534ff34e726644918e24d5601ddf902bae6b) Co-authored-by: Lewis Tunstall <lewtun@users.noreply.huggingface.co>c6e394c -
Update README.md
Verified signaturea0eecf7
-
Update README.md
Verified signature03dee68
-
Update README.md
Verified signature5923b90 -
Update README.md
Verified signature6467693 -
Update README.md
Verified signature005033e -
Update README
29e5192 -
Upload thumbnail.png
Verified signature7353400 -
Update README.md
Verified signature034463f -
Update README.md
Verified signature423db84 -
Update README.md
Verified signatured3eacdc
-
Update README.md
Verified signaturef668db3 -
Update README.md
Verified signaturef49478d -
Update README.md
Verified signature7027b1c -
Update README.md
Verified signaturef66744c
-
Add AI-MO/deepseek-math-7b-sft-aimo_v51.2 checkpoint
Verified signature167ee6b -
initial commit
Verified signature67c0635