Instructions to use oopsung/Yi-Ko-ENCdpo with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use oopsung/Yi-Ko-ENCdpo with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="oopsung/Yi-Ko-ENCdpo")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("oopsung/Yi-Ko-ENCdpo") model = AutoModelForCausalLM.from_pretrained("oopsung/Yi-Ko-ENCdpo") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use oopsung/Yi-Ko-ENCdpo with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "oopsung/Yi-Ko-ENCdpo" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "oopsung/Yi-Ko-ENCdpo", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/oopsung/Yi-Ko-ENCdpo
- SGLang
How to use oopsung/Yi-Ko-ENCdpo 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 "oopsung/Yi-Ko-ENCdpo" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "oopsung/Yi-Ko-ENCdpo", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "oopsung/Yi-Ko-ENCdpo" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "oopsung/Yi-Ko-ENCdpo", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use oopsung/Yi-Ko-ENCdpo with Docker Model Runner:
docker model run hf.co/oopsung/Yi-Ko-ENCdpo
Model Details
Model Developers : oopsung(Sungwoo Park), shleeeee(Seunghyeon Lee)
Input Models input text only.
Output Models generate text only.
Base Model beomi/Yi-Ko-6B
use SFT and DPO train model
- Downloads last month
- 5