Instructions to use ControlLLM/Control-LLM-Llama3.1-8B-OpenCoder8-Instruct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ControlLLM/Control-LLM-Llama3.1-8B-OpenCoder8-Instruct with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="ControlLLM/Control-LLM-Llama3.1-8B-OpenCoder8-Instruct")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("ControlLLM/Control-LLM-Llama3.1-8B-OpenCoder8-Instruct", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use ControlLLM/Control-LLM-Llama3.1-8B-OpenCoder8-Instruct with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ControlLLM/Control-LLM-Llama3.1-8B-OpenCoder8-Instruct" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ControlLLM/Control-LLM-Llama3.1-8B-OpenCoder8-Instruct", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/ControlLLM/Control-LLM-Llama3.1-8B-OpenCoder8-Instruct
- SGLang
How to use ControlLLM/Control-LLM-Llama3.1-8B-OpenCoder8-Instruct 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 "ControlLLM/Control-LLM-Llama3.1-8B-OpenCoder8-Instruct" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ControlLLM/Control-LLM-Llama3.1-8B-OpenCoder8-Instruct", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "ControlLLM/Control-LLM-Llama3.1-8B-OpenCoder8-Instruct" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ControlLLM/Control-LLM-Llama3.1-8B-OpenCoder8-Instruct", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use ControlLLM/Control-LLM-Llama3.1-8B-OpenCoder8-Instruct with Docker Model Runner:
docker model run hf.co/ControlLLM/Control-LLM-Llama3.1-8B-OpenCoder8-Instruct
Add missing metadata
#1
by nielsr HF Staff - opened
README.md
CHANGED
|
@@ -74,12 +74,14 @@ model-index:
|
|
| 74 |
value: 0.4029255319148936
|
| 75 |
stderr: 0.004471732136513382
|
| 76 |
verified: false
|
|
|
|
|
|
|
| 77 |
---
|
|
|
|
| 78 |
# Control-LLM-Llama3.1-8B-OpenCoder8
|
| 79 |
-
This is a fine-tuned model of Llama-3.1-8B-Instruct for coding tasks on OpenCoder SFT dataset.
|
| 80 |
|
| 81 |
-
|
| 82 |
-
This model is associated with the paper: [Control-LLM](https://arxiv.org/abs/2501.10979).
|
| 83 |
|
| 84 |
## Evaluation Results
|
| 85 |
Here is an overview of the evaluation results and findings:
|
|
@@ -114,4 +116,4 @@ The table below summarizes evaluation results across coding tasks and original c
|
|
| 114 |
- **MLU**: MMLU (Massive Multitask Language Understanding)
|
| 115 |
- **MLUP**: MMLU Pro
|
| 116 |
- **O-Avg**: Original Capability - Size Weighted Average across ARC, GPQA, MMLU, and MMLU Pro
|
| 117 |
-
- **Overall**: Combined average across all tasks
|
|
|
|
| 74 |
value: 0.4029255319148936
|
| 75 |
stderr: 0.004471732136513382
|
| 76 |
verified: false
|
| 77 |
+
pipeline_tag: text-generation
|
| 78 |
+
library_name: transformers
|
| 79 |
---
|
| 80 |
+
|
| 81 |
# Control-LLM-Llama3.1-8B-OpenCoder8
|
| 82 |
+
This is a fine-tuned model of Llama-3.1-8B-Instruct for coding tasks on OpenCoder SFT dataset described in the paper: [Control LLM: Controlled Evolution for Intelligence Retention in LLM](https://huggingface.co/papers/2501.10979).
|
| 83 |
|
| 84 |
+
Code: https://github.com/linkedin/ControlLLM.
|
|
|
|
| 85 |
|
| 86 |
## Evaluation Results
|
| 87 |
Here is an overview of the evaluation results and findings:
|
|
|
|
| 116 |
- **MLU**: MMLU (Massive Multitask Language Understanding)
|
| 117 |
- **MLUP**: MMLU Pro
|
| 118 |
- **O-Avg**: Original Capability - Size Weighted Average across ARC, GPQA, MMLU, and MMLU Pro
|
| 119 |
+
- **Overall**: Combined average across all tasks
|