Instructions to use Kuantum-ai1/TinyCode1.1-164M-Python with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Kuantum-ai1/TinyCode1.1-164M-Python with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Kuantum-ai1/TinyCode1.1-164M-Python")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Kuantum-ai1/TinyCode1.1-164M-Python") model = AutoModelForCausalLM.from_pretrained("Kuantum-ai1/TinyCode1.1-164M-Python", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Kuantum-ai1/TinyCode1.1-164M-Python with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Kuantum-ai1/TinyCode1.1-164M-Python" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Kuantum-ai1/TinyCode1.1-164M-Python", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Kuantum-ai1/TinyCode1.1-164M-Python
- SGLang
How to use Kuantum-ai1/TinyCode1.1-164M-Python 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 "Kuantum-ai1/TinyCode1.1-164M-Python" \ --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": "Kuantum-ai1/TinyCode1.1-164M-Python", "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 "Kuantum-ai1/TinyCode1.1-164M-Python" \ --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": "Kuantum-ai1/TinyCode1.1-164M-Python", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Kuantum-ai1/TinyCode1.1-164M-Python with Docker Model Runner:
docker model run hf.co/Kuantum-ai1/TinyCode1.1-164M-Python
Update README.md
Browse files
README.md
CHANGED
|
@@ -26,19 +26,19 @@ A small Python code-completion model, fine-tuned from [`Kuantum-ai1/TinyCode1-16
|
|
| 26 |
Greedy decoding, pass@1 (%), identical harness for every model (max 200 new tokens, 10 s timeout per program).
|
| 27 |
HumanEval uses the standard prompts; MBPP (500 test problems) is zero-shot with a docstring-style prompt containing the task and the first test, so numbers are not directly comparable with few-shot figures reported elsewhere.
|
| 28 |
|
| 29 |
-
| Model | Params |
|
| 30 |
-
|---|---|---|
|
| 31 |
-
| Base: bigcode/tiny_starcoder_py | 164M |
|
| 32 |
-
| Kuantum-ai1/TinyCode1.1-164M-Python (v1.1, ours) | 164M |
|
| 33 |
-
| Kuantum-ai1/TinyCode1-164M-Python (v1) | 164M |
|
| 34 |
|
| 35 |
-
Compared with v1:
|
| 36 |
|
| 37 |
Base numbers come from an earlier run of the same harness; v1 and v1.1 were evaluated together in the final run.
|
| 38 |
|
| 39 |
## GGUF
|
| 40 |
|
| 41 |
-
|
| 42 |
|
| 43 |
## Usage
|
| 44 |
|
|
|
|
| 26 |
Greedy decoding, pass@1 (%), identical harness for every model (max 200 new tokens, 10 s timeout per program).
|
| 27 |
HumanEval uses the standard prompts; MBPP (500 test problems) is zero-shot with a docstring-style prompt containing the task and the first test, so numbers are not directly comparable with few-shot figures reported elsewhere.
|
| 28 |
|
| 29 |
+
| Model | Params | MBPP |
|
| 30 |
+
|---|---|---|
|
| 31 |
+
| Base: bigcode/tiny_starcoder_py | 164M | 4.8 |
|
| 32 |
+
| Kuantum-ai1/TinyCode1.1-164M-Python (v1.1, ours) | 164M | 9.8 |
|
| 33 |
+
| Kuantum-ai1/TinyCode1-164M-Python (v1) | 164M | 3.8 |
|
| 34 |
|
| 35 |
+
Compared with v1: MBPP +6.00 (absolute pass@1 points).
|
| 36 |
|
| 37 |
Base numbers come from an earlier run of the same harness; v1 and v1.1 were evaluated together in the final run.
|
| 38 |
|
| 39 |
## GGUF
|
| 40 |
|
| 41 |
+
Q8, Q6, Q5, Q4_K_M, Q4_K_S and Q4 is avaible
|
| 42 |
|
| 43 |
## Usage
|
| 44 |
|