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
Update model card
Browse files
README.md
CHANGED
|
@@ -1,61 +1,15 @@
|
|
| 1 |
---
|
| 2 |
-
|
| 3 |
-
license: other
|
| 4 |
-
base_model: google/gemma-3-1b-it
|
| 5 |
tags:
|
| 6 |
-
-
|
| 7 |
-
-
|
| 8 |
-
|
| 9 |
-
- transformers
|
| 10 |
-
pipeline_tag: text-generation
|
| 11 |
-
model-index:
|
| 12 |
-
- name: opencodeinst_5k_sft
|
| 13 |
-
results: []
|
| 14 |
---
|
| 15 |
|
| 16 |
-
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 17 |
-
should probably proofread and complete it, then remove this comment. -->
|
| 18 |
-
|
| 19 |
# opencodeinst_5k_sft
|
| 20 |
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
## Model description
|
| 24 |
-
|
| 25 |
-
More information needed
|
| 26 |
-
|
| 27 |
-
## Intended uses & limitations
|
| 28 |
-
|
| 29 |
-
More information needed
|
| 30 |
-
|
| 31 |
-
## Training and evaluation data
|
| 32 |
-
|
| 33 |
-
More information needed
|
| 34 |
-
|
| 35 |
-
## Training procedure
|
| 36 |
-
|
| 37 |
-
### Training hyperparameters
|
| 38 |
-
|
| 39 |
-
The following hyperparameters were used during training:
|
| 40 |
-
- learning_rate: 1e-06
|
| 41 |
-
- train_batch_size: 1
|
| 42 |
-
- eval_batch_size: 4
|
| 43 |
-
- seed: 42
|
| 44 |
-
- gradient_accumulation_steps: 8
|
| 45 |
-
- total_train_batch_size: 8
|
| 46 |
-
- optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
| 47 |
-
- lr_scheduler_type: cosine
|
| 48 |
-
- lr_scheduler_warmup_steps: 0.1
|
| 49 |
-
- num_epochs: 3.0
|
| 50 |
-
|
| 51 |
-
### Training results
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
### Framework versions
|
| 56 |
|
| 57 |
-
-
|
| 58 |
-
-
|
| 59 |
-
-
|
| 60 |
-
- Datasets 4.0.0
|
| 61 |
-
- Tokenizers 0.22.2
|
|
|
|
| 1 |
---
|
| 2 |
+
license: cc-by-nc-4.0
|
|
|
|
|
|
|
| 3 |
tags:
|
| 4 |
+
- mhm
|
| 5 |
+
- text-generation
|
| 6 |
+
library_name: transformers
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
---
|
| 8 |
|
|
|
|
|
|
|
|
|
|
| 9 |
# opencodeinst_5k_sft
|
| 10 |
|
| 11 |
+
Auto-uploaded by watcher (MergeBench excluded).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
|
| 13 |
+
- Source path: `LlamaFactory/models/opencodeinst_5k_sft`
|
| 14 |
+
- Uploaded at: `2026-05-20T06:04:34.897329`
|
| 15 |
+
- Visibility: `public`
|
|
|
|
|
|