Text Generation
Transformers
Safetensors
qwen2
unsloth
trl
orpo
conversational
text-generation-inference
Instructions to use notzero/model_combinedorpo with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use notzero/model_combinedorpo with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="notzero/model_combinedorpo") 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("notzero/model_combinedorpo") model = AutoModelForCausalLM.from_pretrained("notzero/model_combinedorpo", 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 notzero/model_combinedorpo with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "notzero/model_combinedorpo" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "notzero/model_combinedorpo", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/notzero/model_combinedorpo
- SGLang
How to use notzero/model_combinedorpo 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 "notzero/model_combinedorpo" \ --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": "notzero/model_combinedorpo", "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 "notzero/model_combinedorpo" \ --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": "notzero/model_combinedorpo", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Unsloth Desktop
- Docker Model Runner
How to use notzero/model_combinedorpo with Docker Model Runner:
docker model run hf.co/notzero/model_combinedorpo
Commit History
-
Trained with Unsloth
Verified signature5c3ca88 -
Upload tokenizer
Verified signature6092fd7 -
Trained with Unsloth
Verified signature76f4519 -
Upload tokenizer
Verified signature71e71eb
-
Trained with Unsloth
Verified signature865948b -
Trained with Unsloth
Verified signatured2436d0
-
Trained with Unsloth
Verified signature612905b -
Trained with Unsloth
Verified signaturea4d389c -
Trained with Unsloth
Verified signatureb00c60e
-
Trained with Unsloth
Verified signaturec602372 -
Trained with Unsloth
Verified signature9ee6e1f -
Trained with Unsloth
Verified signature3b0e202 -
Trained with Unsloth
Verified signature0f97330
-
Trained with Unsloth
Verified signaturef9f9ab2 -
Trained with Unsloth
Verified signature69e1e5a -
Trained with Unsloth
Verified signaturef4ecf35 -
Trained with Unsloth
Verified signature3335513 -
Upload tokenizer
Verified signatured323830 -
initial commit
Verified signature52b628b