Instructions to use SangsooIm/optm_ours_16 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SangsooIm/optm_ours_16 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="SangsooIm/optm_ours_16")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("SangsooIm/optm_ours_16") model = AutoModelForCausalLM.from_pretrained("SangsooIm/optm_ours_16", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use SangsooIm/optm_ours_16 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "SangsooIm/optm_ours_16" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "SangsooIm/optm_ours_16", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/SangsooIm/optm_ours_16
- SGLang
How to use SangsooIm/optm_ours_16 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 "SangsooIm/optm_ours_16" \ --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": "SangsooIm/optm_ours_16", "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 "SangsooIm/optm_ours_16" \ --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": "SangsooIm/optm_ours_16", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use SangsooIm/optm_ours_16 with Docker Model Runner:
docker model run hf.co/SangsooIm/optm_ours_16
Commit History
-
End of training
24f8e76 -
Training in progress epoch 8
86b2ede -
Training in progress epoch 7
3e206c1 -
Training in progress epoch 6
6d6c7a2 -
Training in progress epoch 5
2edc344 -
Training in progress epoch 4
e56dfaf -
Training in progress epoch 3
7f33749 -
Training in progress epoch 2
374bf70 -
Training in progress epoch 1
c04ce49 -
Training in progress epoch 0
c1b7d8b -
initial commit
Verified signaturee6a625f