Text Generation
Transformers
Safetensors
olmo3
code
reasoning
lora-merged
livecodebench
conversational
Instructions to use modrill/code-think-o7b-20260908 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use modrill/code-think-o7b-20260908 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="modrill/code-think-o7b-20260908") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("modrill/code-think-o7b-20260908") model = AutoModelForCausalLM.from_pretrained("modrill/code-think-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/code-think-o7b-20260908 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "modrill/code-think-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/code-think-o7b-20260908", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/modrill/code-think-o7b-20260908
- SGLang
How to use modrill/code-think-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/code-think-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/code-think-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/code-think-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/code-think-o7b-20260908", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use modrill/code-think-o7b-20260908 with Docker Model Runner:
docker model run hf.co/modrill/code-think-o7b-20260908
| 832dd9e00a68dd83b3c3fb9f5588dad7dcf337a0db50f7d9483f310cd292e92e LICENSE | |
| dc198b55baa0b05b6d1b2c7575cdb9f71d5b1b98f00f8109d0b08e331c0561f8 OFFICIAL_MERGE_RECEIPT.json | |
| 2776d00b6cea3c00547c8e31e0369141293be09d3fda6268ce2a4c00cc829833 README.md | |
| 42a14a7b08216555ed6f8d720039289212cc0607dfbcc7c9afefd8ad668411e4 adapter/MANIFEST.json | |
| db2c1a7d70ec7f419ae43fec19cba720ddbb1e1935e1c3e4195fe558d792a08a adapter/TOKEN_ROWS_META.json | |
| 587de54eb5daba65b533715f7ed07d9d72bf9000a3ae6661cb4faf60bce6d7c3 adapter/adapter_config.json | |
| 8d5df0b34ab83d97abfb8ecadf150a7538f9074c5d73330c6c9a78b8bfde7f0c adapter/adapter_model.safetensors | |
| 08f9c92c1bd2fd4328e8f4afa453227a52a6c5b8132a79d44c12a697b2c15e9f adapter/token_rows_both_sides.safetensors | |
| 03348cf1aab6c187117df83b81525a2c688934636a63b1c4a0acf9b2488c210e chat_template.jinja | |
| c7e71bdf414d94691e4692c2f0202df46dae27d6c435ff42dbcfbd959a0a0bd1 config.json | |
| 87491732ac7b36e6933998b924dc749dfa59dacfde3b99a1ef9758454eea69eb generation_config.json | |
| d719ed44d04f6e21edda783857923366bdf14320c4fbdf04134fdffbf321121b model.safetensors | |
| 50d8cb03cd6b088828dc737d7f3ac7f3795b02c4fecff12a1eebc2788faead7f provenance/DEV256_COMPLETE.json | |
| 5d11a20b7c86a01b849d2045b6fdb503369ea4e34d74d296262fbb3d8aea6da4 provenance/POLICY.json | |
| 987f8c41f735a06d02f4caeebde84dd28f003e30a150bc02389cf9a87434743e provenance/RUN_IDENTITY.json | |
| 3a9691fbda1eff22b24a2b29f956ae0cdd9712d15997429928fe203a86015eb8 provenance/TRAINING_CONFIG.json | |
| 18e309ad7f9c60037eaf26aca401a96128187cad2bdfa01a508dca7526bf6300 tokenizer.json | |
| 96be20e459bc9e489c18ca140a591960bfb6fc7e4985b000200758cac3ef57b3 tokenizer_config.json | |