Instructions to use open-r1/OlympicCoder-32B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use open-r1/OlympicCoder-32B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="open-r1/OlympicCoder-32B") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("open-r1/OlympicCoder-32B") model = AutoModelForCausalLM.from_pretrained("open-r1/OlympicCoder-32B") 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]:])) - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use open-r1/OlympicCoder-32B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "open-r1/OlympicCoder-32B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "open-r1/OlympicCoder-32B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/open-r1/OlympicCoder-32B
- SGLang
How to use open-r1/OlympicCoder-32B 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 "open-r1/OlympicCoder-32B" \ --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": "open-r1/OlympicCoder-32B", "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 "open-r1/OlympicCoder-32B" \ --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": "open-r1/OlympicCoder-32B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use open-r1/OlympicCoder-32B with Docker Model Runner:
docker model run hf.co/open-r1/OlympicCoder-32B
Remove fp32 weights
#4
by lewtun HF Staff - opened
- model-00001-of-00029.safetensors +0 -3
- model-00002-of-00029.safetensors +0 -3
- model-00003-of-00029.safetensors +0 -3
- model-00004-of-00029.safetensors +0 -3
- model-00005-of-00029.safetensors +0 -3
- model-00006-of-00029.safetensors +0 -3
- model-00007-of-00029.safetensors +0 -3
- model-00008-of-00029.safetensors +0 -3
- model-00009-of-00029.safetensors +0 -3
- model-00010-of-00029.safetensors +0 -3
- model-00011-of-00029.safetensors +0 -3
- model-00012-of-00029.safetensors +0 -3
- model-00013-of-00029.safetensors +0 -3
- model-00014-of-00029.safetensors +0 -3
- model-00015-of-00029.safetensors +0 -3
- model-00016-of-00029.safetensors +0 -3
- model-00017-of-00029.safetensors +0 -3
- model-00018-of-00029.safetensors +0 -3
- model-00019-of-00029.safetensors +0 -3
- model-00020-of-00029.safetensors +0 -3
- model-00021-of-00029.safetensors +0 -3
- model-00022-of-00029.safetensors +0 -3
- model-00023-of-00029.safetensors +0 -3
- model-00024-of-00029.safetensors +0 -3
- model-00025-of-00029.safetensors +0 -3
- model-00026-of-00029.safetensors +0 -3
- model-00027-of-00029.safetensors +0 -3
- model-00028-of-00029.safetensors +0 -3
- model-00029-of-00029.safetensors +0 -3
model-00001-of-00029.safetensors
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:9c24cbabbf9f96532a2a0e56b4b0b14d5ab9445f0ec5cd1532a7d38be2f75f2d
|
| 3 |
-
size 4498420872
|
|
|
|
|
|
|
|
|
|
|
|
model-00002-of-00029.safetensors
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:b92ecf39d3622513f2b4842d5526527c0ea70e6fb6a3fc3b8cecec305f59ff3c
|
| 3 |
-
size 4718804768
|
|
|
|
|
|
|
|
|
|
|
|
model-00003-of-00029.safetensors
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:64bf00a3d62f919845d254ebdec0cd30bd50a3f08aac5965d8c1444e593eafd1
|
| 3 |
-
size 4467075880
|
|
|
|
|
|
|
|
|
|
|
|
model-00004-of-00029.safetensors
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:b1623be81a41019a5e265d88c8d4a9d85400d59ac0105d13c0dc36696dcaefc9
|
| 3 |
-
size 4467075880
|
|
|
|
|
|
|
|
|
|
|
|
model-00005-of-00029.safetensors
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:c0b04f2b9a1980395e3f6fa1270de795832699f6e315c2d77e2a55ea4d1a22e7
|
| 3 |
-
size 4718804760
|
|
|
|
|
|
|
|
|
|
|
|
model-00006-of-00029.safetensors
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:ee95483489de51a672c2c9bd9b0d641e2fead1ef5742489df5ac83f8fa28ac42
|
| 3 |
-
size 4467075904
|
|
|
|
|
|
|
|
|
|
|
|
model-00007-of-00029.safetensors
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:6f2b7d049d04505800787dce15ab66215cec31d731d921d99dbafc3ab24e60d8
|
| 3 |
-
size 4467075904
|
|
|
|
|
|
|
|
|
|
|
|
model-00008-of-00029.safetensors
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:4a200b28b6c6fd2a0391bff5bcb30f83b2a70f96d57d67091b9b78f42854cfa1
|
| 3 |
-
size 4718804800
|
|
|
|
|
|
|
|
|
|
|
|
model-00009-of-00029.safetensors
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:d735b1ca9eb5a404c221f5931ac3ad5df02cb54ee9cff8d3186f0d0abfa7268d
|
| 3 |
-
size 4467075904
|
|
|
|
|
|
|
|
|
|
|
|
model-00010-of-00029.safetensors
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:dbf38095713f4a7f27906e3fba93813a78472b16ddf620ce7c1943e6cdddbcef
|
| 3 |
-
size 4467075904
|
|
|
|
|
|
|
|
|
|
|
|
model-00011-of-00029.safetensors
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:dd71856acc3ceaaa70ecd5a9f46dbe93c7b78c53c867c71d03026d384e2d1740
|
| 3 |
-
size 4718804800
|
|
|
|
|
|
|
|
|
|
|
|
model-00012-of-00029.safetensors
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:6351207950b54034bfbcf77523d7b347f31e543b94aec0f3356d59e91d55df95
|
| 3 |
-
size 4467075904
|
|
|
|
|
|
|
|
|
|
|
|
model-00013-of-00029.safetensors
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:85e8a2646dc363a71e32e7b86e10b393f649a1df37b6b943ec1156f646d2ad0f
|
| 3 |
-
size 4467075904
|
|
|
|
|
|
|
|
|
|
|
|
model-00014-of-00029.safetensors
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:5f89d57c0ce1824b2b255726010407f71176b816848930ca4e40ab7870294709
|
| 3 |
-
size 4718804800
|
|
|
|
|
|
|
|
|
|
|
|
model-00015-of-00029.safetensors
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:a978683341703414f73eae2f3b3be65d0e767b644860d765775af6f82c942939
|
| 3 |
-
size 4467075904
|
|
|
|
|
|
|
|
|
|
|
|
model-00016-of-00029.safetensors
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:bb605f10a7343174ed5c1f0f94f69b7004ed358b9382090226a0505790e58c6b
|
| 3 |
-
size 4467075904
|
|
|
|
|
|
|
|
|
|
|
|
model-00017-of-00029.safetensors
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:62a863d9cffe1faf235386a3c18393ea79f00cbff5bdd50111e0693af47a08b3
|
| 3 |
-
size 4718804800
|
|
|
|
|
|
|
|
|
|
|
|
model-00018-of-00029.safetensors
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:efebb21ba84adc3bfde8b16f3c22f186861c5857c2ab3492aa1c04c2f78d6638
|
| 3 |
-
size 4467075904
|
|
|
|
|
|
|
|
|
|
|
|
model-00019-of-00029.safetensors
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:c4a7bd99dd4b4221697aeaeeaed4bf52982f997788d0fe47eb55273f753f53bc
|
| 3 |
-
size 4467075904
|
|
|
|
|
|
|
|
|
|
|
|
model-00020-of-00029.safetensors
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:f5b72b0036cf73ee6697371200d296acbd3d785f694188b1769f51988f935f94
|
| 3 |
-
size 4718804800
|
|
|
|
|
|
|
|
|
|
|
|
model-00021-of-00029.safetensors
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:efd66391f93edb26b5ed1fa8d6fa219fc197b8f17dcdaa9d3405bc53f9835aaf
|
| 3 |
-
size 4467075904
|
|
|
|
|
|
|
|
|
|
|
|
model-00022-of-00029.safetensors
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:0a75684c11ff339de164df90faecda5860a18d12e007d2eed51cb401006294ec
|
| 3 |
-
size 4467075904
|
|
|
|
|
|
|
|
|
|
|
|
model-00023-of-00029.safetensors
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:fd0b862fdfa21b007b9d3c499acc81b27396f8faba3d6691337001c9a4081aad
|
| 3 |
-
size 4718804800
|
|
|
|
|
|
|
|
|
|
|
|
model-00024-of-00029.safetensors
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:be29d72dc925f8f681387e87325415adaad1c38f03a6dd8a9782ca6bf6d2b616
|
| 3 |
-
size 4467075904
|
|
|
|
|
|
|
|
|
|
|
|
model-00025-of-00029.safetensors
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:0f1005e2b780513d3c98bc66faf19f4e889ab76054ea089ad4bfe279aa363ffc
|
| 3 |
-
size 4467075904
|
|
|
|
|
|
|
|
|
|
|
|
model-00026-of-00029.safetensors
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:f2d7d9029df64fb5b9bc54075e516d9e55dc03a132cc21b76ed4eace69f97f5a
|
| 3 |
-
size 4718804800
|
|
|
|
|
|
|
|
|
|
|
|
model-00027-of-00029.safetensors
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:fef62d9b125618ed5e3e7432537a20ad910c640b804cc1a424a18380629e0596
|
| 3 |
-
size 4467075904
|
|
|
|
|
|
|
|
|
|
|
|
model-00028-of-00029.safetensors
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:4bcbaa2c94b6ff0247d947c1e4018fdfcfa1a8fac11281c81537186bbdc5a179
|
| 3 |
-
size 4467075904
|
|
|
|
|
|
|
|
|
|
|
|
model-00029-of-00029.safetensors
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:621944daf7e09d04ea03d5f425c7f3ff64f7bfcc40233e15364a9d8fee09fb08
|
| 3 |
-
size 3680563768
|
|
|
|
|
|
|
|
|
|
|
|