Instructions to use modrill/math-nothink-o7b-20260908 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use modrill/math-nothink-o7b-20260908 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="modrill/math-nothink-o7b-20260908") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("modrill/math-nothink-o7b-20260908") model = AutoModelForCausalLM.from_pretrained("modrill/math-nothink-o7b-20260908", 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]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use modrill/math-nothink-o7b-20260908 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "modrill/math-nothink-o7b-20260908" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "modrill/math-nothink-o7b-20260908", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/modrill/math-nothink-o7b-20260908
- SGLang
How to use modrill/math-nothink-o7b-20260908 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 "modrill/math-nothink-o7b-20260908" \ --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": "modrill/math-nothink-o7b-20260908", "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 "modrill/math-nothink-o7b-20260908" \ --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": "modrill/math-nothink-o7b-20260908", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use modrill/math-nothink-o7b-20260908 with Docker Model Runner:
docker model run hf.co/modrill/math-nothink-o7b-20260908
| { | |
| "schema": "ddc-atomic-checkpoint-commit/1", | |
| "runner_id": "THINK_B_2EP_SIX_ARMS_RUNNER_V3", | |
| "completed_optimizer_updates": 175, | |
| "cumulative_realized_active_tokens": 11441234, | |
| "bindings": { | |
| "config_sha256": "5c380a60cd9fd6e53e02d10c3ab9e2d9ec07b0884ddf3d5878617346d8861fc8", | |
| "runner_code_sha256": "fd6d1c6403810acc4460e2ce0fb5f4418881387b11f4bd21f7cd21067faa3a0a", | |
| "config_schema_sha256": "d6d13eeee42bf04cf34fc68b2fa7a61b316c4543b77d7d779815b8eddf10c099", | |
| "python_binary_sha256": "5700a6a7804feb44da6c963ebd1323982478b7ca57478e4e81981c47818453bd", | |
| "environment_lock_sha256": "627d4fe088b8f64841b0520ae5bd9dc5c81e9dcd5969b4bd45c9a9910b2f3c01", | |
| "base_composite_sha256": "526963d72561cb6244f60f751312673d2671111d214636ae571de0d62c762760", | |
| "base_lock_sha256": "6791648e4030008388f2e9241b23771cb07eb0416fbd7bc3c6777c7c36bda3be", | |
| "frozen_rows_sha256": "3a912697f0aa63896d98d5f3a85d511bcfd192937b4f6eec5c3a9daaf4bf8112", | |
| "ordered_ids_sha256": "daf31ae3753b428565223c2bc8e3a4115c212977e5e48143bbbe25f32427c818", | |
| "update_plan_sha256": "af653aabce045b1194123d1342cc9f29cbd9cd353c9e1fac25d7d5d3998697c6", | |
| "data_receipt_sha256": "e66346fb413557929ab53648bc656fb3102557cf3460abb49c7b1c6e7281420d", | |
| "decontamination_receipt_sha256": "66c360871b06208ed20e473e57ad0f09c79e4dac1b3124a9461a5b729b487153", | |
| "render_receipt_sha256": "e66346fb413557929ab53648bc656fb3102557cf3460abb49c7b1c6e7281420d", | |
| "token_bake_sha256": "74234e98afe7498fb5daf1f36ac2d78acc339464f950703b8c019892f982b90b", | |
| "continuation_sha256": "74234e98afe7498fb5daf1f36ac2d78acc339464f950703b8c019892f982b90b" | |
| }, | |
| "trainer_state": { | |
| "path": "trainer_state.pt", | |
| "bytes": 1919554413, | |
| "sha256": "f1813917397a7b25419fc797c26557ef3597a58eafbb453609d036162ee3d20a" | |
| }, | |
| "token_boundary_ledger": { | |
| "path": "TOKEN_BOUNDARY_LEDGER.json", | |
| "bytes": 245362, | |
| "sha256": "f977fadf4d961307cae1aa6a0fb67ad395baa333509c8a976ab738e6ad5be00c" | |
| }, | |
| "adapter_files": [ | |
| { | |
| "path": "adapter/README.md", | |
| "bytes": 5282, | |
| "sha256": "45145483fe203512c1f26bd8675f16875cc326c7cfe5e3020cdf0f50f297acf2" | |
| }, | |
| { | |
| "path": "adapter/adapter_config.json", | |
| "bytes": 1276, | |
| "sha256": "a37aa48d13618232c43abf0e86a19946114af9857c0748fa3714793257d1bbf1" | |
| }, | |
| { | |
| "path": "adapter/adapter_model.safetensors", | |
| "bytes": 639724904, | |
| "sha256": "f455b0193d3b8065e86b9cd31c5a61f234eaf795c1a60d0d3def1bee0da4aa89" | |
| } | |
| ], | |
| "serialization_canary": { | |
| "save_load_format": "safetensors", | |
| "state_key_count": 450, | |
| "token_state": { | |
| "schema": "think-b-2ep-token-rows/1", | |
| "tensors": [ | |
| { | |
| "key": "base_model.model.lm_head.token_adapter.trainable_tokens_delta", | |
| "sha256": "f79ec708d13a4df51b637f59631de9a11092c1e392385d59089d40be2d4881b6", | |
| "shape": [ | |
| 1, | |
| 4096 | |
| ], | |
| "dtype": "torch.float32" | |
| }, | |
| { | |
| "key": "base_model.model.model.embed_tokens.token_adapter.trainable_tokens_delta", | |
| "sha256": "1f1a38b5c91a31be7cc7cd0f4dded40c8cb9781f2ceaefda73c2eb5e2d52e899", | |
| "shape": [ | |
| 1, | |
| 4096 | |
| ], | |
| "dtype": "torch.float32" | |
| } | |
| ] | |
| } | |
| }, | |
| "token_state": { | |
| "schema": "think-b-2ep-token-rows/1", | |
| "tensors": [ | |
| { | |
| "key": "base_model.model.lm_head.token_adapter.trainable_tokens_delta", | |
| "sha256": "f79ec708d13a4df51b637f59631de9a11092c1e392385d59089d40be2d4881b6", | |
| "shape": [ | |
| 1, | |
| 4096 | |
| ], | |
| "dtype": "torch.float32" | |
| }, | |
| { | |
| "key": "base_model.model.model.embed_tokens.token_adapter.trainable_tokens_delta", | |
| "sha256": "1f1a38b5c91a31be7cc7cd0f4dded40c8cb9781f2ceaefda73c2eb5e2d52e899", | |
| "shape": [ | |
| 1, | |
| 4096 | |
| ], | |
| "dtype": "torch.float32" | |
| } | |
| ] | |
| } | |
| } | |