Text Generation
Transformers
Safetensors
qwen2
llama-factory
full
Generated from Trainer
conversational
text-generation-inference
Instructions to use sri-blaze/kodcode-v1-fixed with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use sri-blaze/kodcode-v1-fixed with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="sri-blaze/kodcode-v1-fixed") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("sri-blaze/kodcode-v1-fixed") model = AutoModelForCausalLM.from_pretrained("sri-blaze/kodcode-v1-fixed", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use sri-blaze/kodcode-v1-fixed with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "sri-blaze/kodcode-v1-fixed" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "sri-blaze/kodcode-v1-fixed", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/sri-blaze/kodcode-v1-fixed
- SGLang
How to use sri-blaze/kodcode-v1-fixed 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 "sri-blaze/kodcode-v1-fixed" \ --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": "sri-blaze/kodcode-v1-fixed", "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 "sri-blaze/kodcode-v1-fixed" \ --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": "sri-blaze/kodcode-v1-fixed", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use sri-blaze/kodcode-v1-fixed with Docker Model Runner:
docker model run hf.co/sri-blaze/kodcode-v1-fixed
Commit History
-
Upload complete: sri-blaze/kodcode-v1-fixed
Verified signatureb33f496 -
Upload in progress: sri-blaze/kodcode-v1-fixed (13/14)
Verified signaturefd103d0 -
Upload in progress: sri-blaze/kodcode-v1-fixed (10/14)
Verified signature4009a7a -
Upload in progress: sri-blaze/kodcode-v1-fixed (9/14)
Verified signature209551b -
Upload in progress: sri-blaze/kodcode-v1-fixed (11/14)
Verified signatured18b5ac -
Upload in progress: sri-blaze/kodcode-v1-fixed (12/14)
Verified signatureecd4d02 -
Upload in progress: sri-blaze/kodcode-v1-fixed (14/14)
Verified signatureac6b201 -
Upload in progress: sri-blaze/kodcode-v1-fixed (4/14)
Verified signaturee158d83 -
Upload in progress: sri-blaze/kodcode-v1-fixed (5/14)
Verified signature11955ca -
Upload in progress: sri-blaze/kodcode-v1-fixed (1/14)
Verified signature43b1d97 -
Upload in progress: sri-blaze/kodcode-v1-fixed (7/14)
Verified signature81bed3a -
Upload in progress: sri-blaze/kodcode-v1-fixed (8/14)
Verified signature9f4a91f -
Upload in progress: sri-blaze/kodcode-v1-fixed (2/14)
Verified signaturea37dd0a -
Upload in progress: sri-blaze/kodcode-v1-fixed (6/14)
Verified signature2663871 -
Upload in progress: sri-blaze/kodcode-v1-fixed (3/14)
Verified signature1349a3a -
Upload training_loss.png with huggingface_hub
Verified signature95f8261 -
Upload generation_config.json with huggingface_hub
Verified signature2ff6b19 -
Upload train_results.json with huggingface_hub
Verified signature815f971 -
Upload README.md with huggingface_hub
Verified signature637b37a -
Upload special_tokens_map.json with huggingface_hub
Verified signature2b5a9fb -
Upload trainer_log.jsonl with huggingface_hub
Verified signatureb4bf3ac -
Upload tokenizer.json with huggingface_hub
Verified signature744acbb -
Upload model.safetensors.index.json with huggingface_hub
Verified signature53560be -
Upload all_results.json with huggingface_hub
Verified signaturea111d88 -
Upload training_args.bin with huggingface_hub
Verified signature514994a -
Upload tokenizer_config.json with huggingface_hub
Verified signaturef1d5407 -
Upload trainer_state.json with huggingface_hub
Verified signaturee0d6bd9 -
Upload config.json with huggingface_hub
Verified signature880ea48 -
initial commit
Verified signature833cb6c