Instructions to use cochi1706/codingassistant with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use cochi1706/codingassistant with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen3-0.6B") model = PeftModel.from_pretrained(base_model, "cochi1706/codingassistant") - Transformers
How to use cochi1706/codingassistant with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="cochi1706/codingassistant") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("cochi1706/codingassistant", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use cochi1706/codingassistant with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "cochi1706/codingassistant" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "cochi1706/codingassistant", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/cochi1706/codingassistant
- SGLang
How to use cochi1706/codingassistant 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 "cochi1706/codingassistant" \ --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": "cochi1706/codingassistant", "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 "cochi1706/codingassistant" \ --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": "cochi1706/codingassistant", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use cochi1706/codingassistant with Docker Model Runner:
docker model run hf.co/cochi1706/codingassistant
Upload tokenizer
Browse files- tokenizer.json +2 -2
- tokenizer_config.json +7 -0
tokenizer.json
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:aeb13307a71acd8fe81861d94ad54ab689df773318809eed3cbe794b4492dae4
|
| 3 |
+
size 11422654
|
tokenizer_config.json
CHANGED
|
@@ -231,9 +231,16 @@
|
|
| 231 |
"eos_token": "<|im_end|>",
|
| 232 |
"errors": "replace",
|
| 233 |
"extra_special_tokens": {},
|
|
|
|
| 234 |
"model_max_length": 131072,
|
|
|
|
| 235 |
"pad_token": "<|endoftext|>",
|
|
|
|
|
|
|
| 236 |
"split_special_tokens": false,
|
|
|
|
| 237 |
"tokenizer_class": "Qwen2Tokenizer",
|
|
|
|
|
|
|
| 238 |
"unk_token": null
|
| 239 |
}
|
|
|
|
| 231 |
"eos_token": "<|im_end|>",
|
| 232 |
"errors": "replace",
|
| 233 |
"extra_special_tokens": {},
|
| 234 |
+
"max_length": 512,
|
| 235 |
"model_max_length": 131072,
|
| 236 |
+
"pad_to_multiple_of": null,
|
| 237 |
"pad_token": "<|endoftext|>",
|
| 238 |
+
"pad_token_type_id": 0,
|
| 239 |
+
"padding_side": "right",
|
| 240 |
"split_special_tokens": false,
|
| 241 |
+
"stride": 0,
|
| 242 |
"tokenizer_class": "Qwen2Tokenizer",
|
| 243 |
+
"truncation_side": "right",
|
| 244 |
+
"truncation_strategy": "longest_first",
|
| 245 |
"unk_token": null
|
| 246 |
}
|