Instructions to use modrill/qwen3_4b_base_lingcoder_shortcot_4k_lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use modrill/qwen3_4b_base_lingcoder_shortcot_4k_lora with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="modrill/qwen3_4b_base_lingcoder_shortcot_4k_lora") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("modrill/qwen3_4b_base_lingcoder_shortcot_4k_lora", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use modrill/qwen3_4b_base_lingcoder_shortcot_4k_lora with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "modrill/qwen3_4b_base_lingcoder_shortcot_4k_lora" # 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/qwen3_4b_base_lingcoder_shortcot_4k_lora", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/modrill/qwen3_4b_base_lingcoder_shortcot_4k_lora
- SGLang
How to use modrill/qwen3_4b_base_lingcoder_shortcot_4k_lora 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/qwen3_4b_base_lingcoder_shortcot_4k_lora" \ --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/qwen3_4b_base_lingcoder_shortcot_4k_lora", "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/qwen3_4b_base_lingcoder_shortcot_4k_lora" \ --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/qwen3_4b_base_lingcoder_shortcot_4k_lora", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use modrill/qwen3_4b_base_lingcoder_shortcot_4k_lora with Docker Model Runner:
docker model run hf.co/modrill/qwen3_4b_base_lingcoder_shortcot_4k_lora
Add files using upload-large-folder tool
Browse files- adapter_model.safetensors +3 -0
- checkpoint-2600/adapter_model.safetensors +3 -0
- checkpoint-2600/tokenizer.json +3 -0
- checkpoint-2800/adapter_model.safetensors +3 -0
- checkpoint-3000/rng_state_0.pth +3 -0
- checkpoint-3000/rng_state_1.pth +3 -0
- checkpoint-3000/rng_state_2.pth +3 -0
- checkpoint-3000/tokenizer.json +3 -0
- checkpoint-3000/training_args.bin +3 -0
- checkpoint-3094/optimizer.pt +3 -0
- checkpoint-3094/rng_state_0.pth +3 -0
- checkpoint-3094/rng_state_1.pth +3 -0
- checkpoint-3094/rng_state_2.pth +3 -0
- checkpoint-3094/rng_state_3.pth +3 -0
- checkpoint-3094/scheduler.pt +3 -0
- checkpoint-3094/tokenizer.json +3 -0
- checkpoint-3094/training_args.bin +3 -0
adapter_model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:09a868524bc650caecf8a96c1b7a8c9806ed1f7de09f68a94990a38d5cc3720a
|
| 3 |
+
size 264308896
|
checkpoint-2600/adapter_model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4bdbb6d9dcab3674bbc6eda806fcaa2a1f768c61ab41bb98ac0974344add7166
|
| 3 |
+
size 264308896
|
checkpoint-2600/tokenizer.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:be75606093db2094d7cd20f3c2f385c212750648bd6ea4fb2bf507a6a4c55506
|
| 3 |
+
size 11422650
|
checkpoint-2800/adapter_model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4b9ef6b914b07ba83bd4cf6e1a666b1b069171259acd845899495fe6068d9d70
|
| 3 |
+
size 264308896
|
checkpoint-3000/rng_state_0.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ecb63393f8ce6be7af8b7553586d784f22ff9c2a424ab9e50ae5c2301c5a2b8f
|
| 3 |
+
size 15429
|
checkpoint-3000/rng_state_1.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c24cac27c04b739680cac1bd5bf6d898639ac0e983ae684d47f8df5c856c51c0
|
| 3 |
+
size 15429
|
checkpoint-3000/rng_state_2.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6408e3392c2db0db40b108d47670f9ec959adbfcacb56aeb5b5411178f3ef4df
|
| 3 |
+
size 15429
|
checkpoint-3000/tokenizer.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:be75606093db2094d7cd20f3c2f385c212750648bd6ea4fb2bf507a6a4c55506
|
| 3 |
+
size 11422650
|
checkpoint-3000/training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:35f7c9df64c3878a6af022f87735f5d8a7b4ae14de05ab3af73dcc955b795285
|
| 3 |
+
size 5585
|
checkpoint-3094/optimizer.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3c81be6c4972d800ed136e5a58db2227574b235fb28cea3e174942244b0c65ec
|
| 3 |
+
size 528915403
|
checkpoint-3094/rng_state_0.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1578a99fa71f66ecdc267ca5cc28e8e09d6866a953439e6142e089411f0d4276
|
| 3 |
+
size 15429
|
checkpoint-3094/rng_state_1.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4161bd704a0d95c4c6ed313a38c3e386077f561717d8918529af5b38a60adde8
|
| 3 |
+
size 15429
|
checkpoint-3094/rng_state_2.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b72b236d669c4ed3d5d158170d59e5557fb769108969d2c50125998ee96cdb1e
|
| 3 |
+
size 15429
|
checkpoint-3094/rng_state_3.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:90cc00d77746803f3bcfb21f04830742b8cc6a3e2b60d4c1c08cad488a2ec78e
|
| 3 |
+
size 15429
|
checkpoint-3094/scheduler.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e5e82c718511c98833148ae74865c7bf18fd36cd177290b0c2186aded1859d07
|
| 3 |
+
size 1465
|
checkpoint-3094/tokenizer.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:be75606093db2094d7cd20f3c2f385c212750648bd6ea4fb2bf507a6a4c55506
|
| 3 |
+
size 11422650
|
checkpoint-3094/training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:35f7c9df64c3878a6af022f87735f5d8a7b4ae14de05ab3af73dcc955b795285
|
| 3 |
+
size 5585
|