Instructions to use modrill/opencodeinst_5k_sft with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use modrill/opencodeinst_5k_sft with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="modrill/opencodeinst_5k_sft") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("modrill/opencodeinst_5k_sft", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use modrill/opencodeinst_5k_sft with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "modrill/opencodeinst_5k_sft" # 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/opencodeinst_5k_sft", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/modrill/opencodeinst_5k_sft
- SGLang
How to use modrill/opencodeinst_5k_sft 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/opencodeinst_5k_sft" \ --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/opencodeinst_5k_sft", "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/opencodeinst_5k_sft" \ --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/opencodeinst_5k_sft", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use modrill/opencodeinst_5k_sft with Docker Model Runner:
docker model run hf.co/modrill/opencodeinst_5k_sft
Add files using upload-large-folder tool
Browse files- checkpoint-1400/adapter_model.safetensors +3 -0
- checkpoint-1400/optimizer.pt +3 -0
- checkpoint-1400/tokenizer.json +3 -0
- checkpoint-1500/adapter_model.safetensors +3 -0
- checkpoint-1500/rng_state.pth +3 -0
- checkpoint-1500/tokenizer.json +3 -0
- checkpoint-1500/training_args.bin +3 -0
- checkpoint-1600/adapter_model.safetensors +3 -0
- checkpoint-1600/tokenizer.json +3 -0
- checkpoint-1700/adapter_model.safetensors +3 -0
- checkpoint-1700/rng_state.pth +3 -0
- checkpoint-1700/scheduler.pt +3 -0
- checkpoint-1700/tokenizer.json +3 -0
- checkpoint-1700/training_args.bin +3 -0
- checkpoint-1782/rng_state.pth +3 -0
- checkpoint-1782/scheduler.pt +3 -0
- checkpoint-1782/training_args.bin +3 -0
checkpoint-1400/adapter_model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:de7efb3d9491de67ac783fd03d36b0a9adecb27947fc9fbbac934deaf93d0dcc
|
| 3 |
+
size 26139264
|
checkpoint-1400/optimizer.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:76fd1f63d4b39a6bac81e98371e93c310b417f83422080eb38c5cb992b050693
|
| 3 |
+
size 52494119
|
checkpoint-1400/tokenizer.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a74aefb1dc1340a25f29ab8370384b9ed24b2d921d7749ece7bbcfcfdf00d497
|
| 3 |
+
size 33384443
|
checkpoint-1500/adapter_model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f969e1ae97db0365cda60d311e4a73e0582e7a166101369ea17925192dcd5393
|
| 3 |
+
size 26139264
|
checkpoint-1500/rng_state.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6f6c68b2aca1c5189449ff89b87701d42d6ec9377722aa905aa5afab8f6a2dcd
|
| 3 |
+
size 14645
|
checkpoint-1500/tokenizer.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a74aefb1dc1340a25f29ab8370384b9ed24b2d921d7749ece7bbcfcfdf00d497
|
| 3 |
+
size 33384443
|
checkpoint-1500/training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5e59b6aeffb8563cc09210642a0d080410d061efe9a32399cd1e4a1e0abccb0a
|
| 3 |
+
size 5585
|
checkpoint-1600/adapter_model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c18a6900b86cf24171243cd163b643b694f99fdcc4f83b0fb7c82e4ded7922b9
|
| 3 |
+
size 26139264
|
checkpoint-1600/tokenizer.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a74aefb1dc1340a25f29ab8370384b9ed24b2d921d7749ece7bbcfcfdf00d497
|
| 3 |
+
size 33384443
|
checkpoint-1700/adapter_model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4086df64fcbe37e103989e80a393fd03cddd03a9372285166da85040f53b53cc
|
| 3 |
+
size 26139264
|
checkpoint-1700/rng_state.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d1423c2cf6daa76f3a6336ee039a465dae89255e951ab4969cf2540bb31e494d
|
| 3 |
+
size 14645
|
checkpoint-1700/scheduler.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f513ea9ca7d901b56d2d38601e482d370ab9b2a61f441d9caca4e78bca39969d
|
| 3 |
+
size 1465
|
checkpoint-1700/tokenizer.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a74aefb1dc1340a25f29ab8370384b9ed24b2d921d7749ece7bbcfcfdf00d497
|
| 3 |
+
size 33384443
|
checkpoint-1700/training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5e59b6aeffb8563cc09210642a0d080410d061efe9a32399cd1e4a1e0abccb0a
|
| 3 |
+
size 5585
|
checkpoint-1782/rng_state.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cf11aa09ba39f8d44cc8933c250e5cbcda4803cf4cfd31e61a60fde704c02d47
|
| 3 |
+
size 14645
|
checkpoint-1782/scheduler.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:712720eeec1f01438c9d17f61930bf6e85999b873df59fc5d7a21e78ee1691cc
|
| 3 |
+
size 1465
|
checkpoint-1782/training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5e59b6aeffb8563cc09210642a0d080410d061efe9a32399cd1e4a1e0abccb0a
|
| 3 |
+
size 5585
|