Instructions to use SangsooIm/optm_ours_11 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SangsooIm/optm_ours_11 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="SangsooIm/optm_ours_11")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("SangsooIm/optm_ours_11") model = AutoModelForCausalLM.from_pretrained("SangsooIm/optm_ours_11", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use SangsooIm/optm_ours_11 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "SangsooIm/optm_ours_11" # 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_11", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/SangsooIm/optm_ours_11
- SGLang
How to use SangsooIm/optm_ours_11 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_11" \ --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_11", "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_11" \ --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_11", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use SangsooIm/optm_ours_11 with Docker Model Runner:
docker model run hf.co/SangsooIm/optm_ours_11
Commit History
-
End of training
31ae3e7 -
Training in progress epoch 8
4744aee -
Training in progress epoch 7
33e690e -
Training in progress epoch 6
63edf64 -
Training in progress epoch 5
4fb7f3e -
Training in progress epoch 4
5e5771f -
Training in progress epoch 3
132fd40 -
Training in progress epoch 2
fdcdbe7 -
Training in progress epoch 1
353fdfd -
Training in progress epoch 0
ed1c634 -
initial commit
Verified signature9e381ec