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", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- 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
| { | |
| "best_global_step": null, | |
| "best_metric": null, | |
| "best_model_checkpoint": null, | |
| "epoch": 1.6963906581740975, | |
| "eval_steps": 500, | |
| "global_step": 200, | |
| "is_hyper_param_search": false, | |
| "is_local_process_zero": true, | |
| "is_world_process_zero": true, | |
| "log_history": [ | |
| { | |
| "epoch": 0.42462845010615713, | |
| "grad_norm": 0.7648019194602966, | |
| "learning_rate": 4.307909604519774e-05, | |
| "loss": 4.6549, | |
| "step": 50 | |
| }, | |
| { | |
| "epoch": 0.8492569002123143, | |
| "grad_norm": 0.2843627333641052, | |
| "learning_rate": 3.601694915254237e-05, | |
| "loss": 0.2552, | |
| "step": 100 | |
| }, | |
| { | |
| "epoch": 1.2717622080679405, | |
| "grad_norm": 0.31124347448349, | |
| "learning_rate": 2.895480225988701e-05, | |
| "loss": 0.2166, | |
| "step": 150 | |
| }, | |
| { | |
| "epoch": 1.6963906581740975, | |
| "grad_norm": 0.323591411113739, | |
| "learning_rate": 2.189265536723164e-05, | |
| "loss": 0.2091, | |
| "step": 200 | |
| } | |
| ], | |
| "logging_steps": 50, | |
| "max_steps": 354, | |
| "num_input_tokens_seen": 0, | |
| "num_train_epochs": 3, | |
| "save_steps": 200, | |
| "stateful_callbacks": { | |
| "TrainerControl": { | |
| "args": { | |
| "should_epoch_stop": false, | |
| "should_evaluate": false, | |
| "should_log": false, | |
| "should_save": true, | |
| "should_training_stop": false | |
| }, | |
| "attributes": {} | |
| } | |
| }, | |
| "total_flos": 4334462372413440.0, | |
| "train_batch_size": 2, | |
| "trial_name": null, | |
| "trial_params": null | |
| } | |