Instructions to use a3ilab-llm-uncertainty/gptoss_20b_all_zhtw_lr5e-7_ep1_16_64_128_turn with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use a3ilab-llm-uncertainty/gptoss_20b_all_zhtw_lr5e-7_ep1_16_64_128_turn with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("openai/gpt-oss-20b") model = PeftModel.from_pretrained(base_model, "a3ilab-llm-uncertainty/gptoss_20b_all_zhtw_lr5e-7_ep1_16_64_128_turn") - Transformers
How to use a3ilab-llm-uncertainty/gptoss_20b_all_zhtw_lr5e-7_ep1_16_64_128_turn with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="a3ilab-llm-uncertainty/gptoss_20b_all_zhtw_lr5e-7_ep1_16_64_128_turn") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("a3ilab-llm-uncertainty/gptoss_20b_all_zhtw_lr5e-7_ep1_16_64_128_turn", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use a3ilab-llm-uncertainty/gptoss_20b_all_zhtw_lr5e-7_ep1_16_64_128_turn with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "a3ilab-llm-uncertainty/gptoss_20b_all_zhtw_lr5e-7_ep1_16_64_128_turn" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "a3ilab-llm-uncertainty/gptoss_20b_all_zhtw_lr5e-7_ep1_16_64_128_turn", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/a3ilab-llm-uncertainty/gptoss_20b_all_zhtw_lr5e-7_ep1_16_64_128_turn
- SGLang
How to use a3ilab-llm-uncertainty/gptoss_20b_all_zhtw_lr5e-7_ep1_16_64_128_turn 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 "a3ilab-llm-uncertainty/gptoss_20b_all_zhtw_lr5e-7_ep1_16_64_128_turn" \ --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": "a3ilab-llm-uncertainty/gptoss_20b_all_zhtw_lr5e-7_ep1_16_64_128_turn", "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 "a3ilab-llm-uncertainty/gptoss_20b_all_zhtw_lr5e-7_ep1_16_64_128_turn" \ --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": "a3ilab-llm-uncertainty/gptoss_20b_all_zhtw_lr5e-7_ep1_16_64_128_turn", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use a3ilab-llm-uncertainty/gptoss_20b_all_zhtw_lr5e-7_ep1_16_64_128_turn with Docker Model Runner:
docker model run hf.co/a3ilab-llm-uncertainty/gptoss_20b_all_zhtw_lr5e-7_ep1_16_64_128_turn
Ctrl+K
- checkpoint-10
- checkpoint-100
- checkpoint-110
- checkpoint-120
- checkpoint-130
- checkpoint-140
- checkpoint-150
- checkpoint-160
- checkpoint-170
- checkpoint-180
- checkpoint-190
- checkpoint-20
- checkpoint-200
- checkpoint-210
- checkpoint-215
- checkpoint-30
- checkpoint-40
- checkpoint-50
- checkpoint-60
- checkpoint-70
- checkpoint-80
- checkpoint-90
- 3.01 kB
- 3.02 kB
- 1 kB
- 31.9 MB xet
- 343 Bytes
- 16.7 kB
- 160 Bytes
- 440 Bytes
- 27.9 MB xet
- 4.26 kB
- 203 Bytes
- 45.5 kB
- 42.5 kB
- 6.29 kB xet
- 41.1 kB
- 66.3 kB