Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

a3ilab-llm-uncertainty
/
gptoss_20b_all_zhtw_lr5e-7_ep1_16_64_128

Text Generation
PEFT
Safetensors
Transformers
llama-factory
lora
conversational
Model card Files Files and versions
xet
Community

Instructions to use a3ilab-llm-uncertainty/gptoss_20b_all_zhtw_lr5e-7_ep1_16_64_128 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 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")
  • Transformers

    How to use a3ilab-llm-uncertainty/gptoss_20b_all_zhtw_lr5e-7_ep1_16_64_128 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")
    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", 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 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"
    # 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",
    		"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
  • SGLang

    How to use a3ilab-llm-uncertainty/gptoss_20b_all_zhtw_lr5e-7_ep1_16_64_128 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" \
        --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",
    		"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" \
            --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",
    		"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 with Docker Model Runner:

    docker model run hf.co/a3ilab-llm-uncertainty/gptoss_20b_all_zhtw_lr5e-7_ep1_16_64_128
gptoss_20b_all_zhtw_lr5e-7_ep1_16_64_128 / checkpoint-140
124 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 1 commit
cccxi's picture
cccxi
Upload LoRA adapter folder
b1dc134 verified 4 months ago
  • README.md
    5.21 kB
    Upload LoRA adapter folder 4 months ago
  • adapter_config.json
    1 kB
    Upload LoRA adapter folder 4 months ago
  • adapter_model.safetensors
    31.9 MB
    xet
    Upload LoRA adapter folder 4 months ago
  • chat_template.jinja
    16.7 kB
    Upload LoRA adapter folder 4 months ago
  • optimizer.pt

    Detected Pickle imports (3)

    • "collections.OrderedDict",
    • "torch._utils._rebuild_tensor_v2",
    • "torch.FloatStorage"

    What is a pickle import?

    63.9 MB
    xet
    Upload LoRA adapter folder 4 months ago
  • rng_state.pth

    Detected Pickle imports (7)

    • "collections.OrderedDict",
    • "torch.ByteStorage",
    • "torch._utils._rebuild_tensor_v2",
    • "numpy.dtype",
    • "numpy.ndarray",
    • "_codecs.encode",
    • "numpy._core.multiarray._reconstruct"

    How to fix it?

    14.6 kB
    xet
    Upload LoRA adapter folder 4 months ago
  • scheduler.pt
    1.47 kB
    xet
    Upload LoRA adapter folder 4 months ago
  • special_tokens_map.json
    440 Bytes
    Upload LoRA adapter folder 4 months ago
  • tokenizer.json
    27.9 MB
    xet
    Upload LoRA adapter folder 4 months ago
  • tokenizer_config.json
    4.26 kB
    Upload LoRA adapter folder 4 months ago
  • trainer_state.json
    27.8 kB
    Upload LoRA adapter folder 4 months ago
  • training_args.bin
    6.23 kB
    xet
    Upload LoRA adapter folder 4 months ago