Text Generation
Transformers
Safetensors
llama
Generated from Trainer
open-r1
trl
grpo
conversational
text-generation-inference
Instructions to use zerowsw/coderm-8b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use zerowsw/coderm-8b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="zerowsw/coderm-8b") 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("zerowsw/coderm-8b") model = AutoModelForCausalLM.from_pretrained("zerowsw/coderm-8b", 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 zerowsw/coderm-8b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "zerowsw/coderm-8b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "zerowsw/coderm-8b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/zerowsw/coderm-8b
- SGLang
How to use zerowsw/coderm-8b 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 "zerowsw/coderm-8b" \ --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": "zerowsw/coderm-8b", "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 "zerowsw/coderm-8b" \ --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": "zerowsw/coderm-8b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use zerowsw/coderm-8b with Docker Model Runner:
docker model run hf.co/zerowsw/coderm-8b
Commit History
-
End of training
Verified signature7f98828 -
Model save
Verified signature6a2f41c -
Training in progress, step 100
Verified signature5af5889 -
Training in progress, step 75
Verified signature37f60bc -
Training in progress, step 50
Verified signature80b4708 -
Training in progress, step 25
Verified signature780d1fd -
End of training
Verified signature75a776c -
Model save
Verified signature3b3d368
-
End of training
Verified signatured5965d1 -
Model save
Verified signaturec326b3d -
Training in progress, step 200
Verified signaturedc8ae4c -
Training in progress, step 175
Verified signature374244d -
Training in progress, step 150
Verified signaturef7e2e2f -
Training in progress, step 125
Verified signature6144951
-
End of training
Verified signature255845b -
Model save
Verified signatureeab7674 -
Training in progress, step 100
Verified signatureb274b8c -
Training in progress, step 75
Verified signatureb3bcc6e -
Training in progress, step 50
Verified signature3479612 -
Training in progress, step 25
Verified signature91e88a3
-
End of training
Verified signatureee2a1c0 -
Model save
Verified signature1c7c369
-
End of training
Verified signaturec031906 -
Model save
Verified signaturefe4c4b7 -
initial commit
Verified signature4f92504