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
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

shibatch
/
tinygptossmoe3m

Text Generation
Transformers
Safetensors
GGUF
English
gpt_oss
Mixture of Experts
mixture-of-experts
causal-lm
tinystories
tiny-model
validation
debug-model
mxfp4
e2m1
e8m0
Model card Files Files and versions
xet
Community

Instructions to use shibatch/tinygptossmoe3m with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use shibatch/tinygptossmoe3m with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-generation", model="shibatch/tinygptossmoe3m")
    # Load model directly
    from transformers import AutoModel
    model = AutoModel.from_pretrained("shibatch/tinygptossmoe3m", device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps Settings
  • llama.cpp

    How to use shibatch/tinygptossmoe3m with llama.cpp:

    Install (macOS, Linux)
    curl -LsSf https://llama.app/install.sh | sh
    # Start a local OpenAI-compatible server with a web UI:
    llama serve -hf shibatch/tinygptossmoe3m:MXFP4
    # Run inference directly in the terminal:
    llama cli -hf shibatch/tinygptossmoe3m:MXFP4
    Install from WinGet (Windows)
    winget install llama.cpp
    # Start a local OpenAI-compatible server with a web UI:
    llama serve -hf shibatch/tinygptossmoe3m:MXFP4
    # Run inference directly in the terminal:
    llama cli -hf shibatch/tinygptossmoe3m:MXFP4
    Use pre-built binary
    # Download pre-built binary from:
    # https://github.com/ggerganov/llama.cpp/releases
    # Start a local OpenAI-compatible server with a web UI:
    ./llama-server -hf shibatch/tinygptossmoe3m:MXFP4
    # Run inference directly in the terminal:
    ./llama-cli -hf shibatch/tinygptossmoe3m:MXFP4
    Build from source code
    git clone https://github.com/ggerganov/llama.cpp.git
    cd llama.cpp
    cmake -B build
    cmake --build build -j --target llama-server llama-cli
    # Start a local OpenAI-compatible server with a web UI:
    ./build/bin/llama-server -hf shibatch/tinygptossmoe3m:MXFP4
    # Run inference directly in the terminal:
    ./build/bin/llama-cli -hf shibatch/tinygptossmoe3m:MXFP4
    Use Docker
    docker model run hf.co/shibatch/tinygptossmoe3m:MXFP4
  • LM Studio
  • Jan
  • vLLM

    How to use shibatch/tinygptossmoe3m with vLLM:

    Install from pip and serve model
    # Install vLLM from pip:
    pip install vllm
    # Start the vLLM server:
    vllm serve "shibatch/tinygptossmoe3m"
    # Call the server using curl (OpenAI-compatible API):
    curl -X POST "http://localhost:8000/v1/completions" \
    	-H "Content-Type: application/json" \
    	--data '{
    		"model": "shibatch/tinygptossmoe3m",
    		"prompt": "Once upon a time,",
    		"max_tokens": 512,
    		"temperature": 0.5
    	}'
    Use Docker
    docker model run hf.co/shibatch/tinygptossmoe3m:MXFP4
  • SGLang

    How to use shibatch/tinygptossmoe3m 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 "shibatch/tinygptossmoe3m" \
        --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": "shibatch/tinygptossmoe3m",
    		"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 "shibatch/tinygptossmoe3m" \
            --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": "shibatch/tinygptossmoe3m",
    		"prompt": "Once upon a time,",
    		"max_tokens": 512,
    		"temperature": 0.5
    	}'
  • Ollama

    How to use shibatch/tinygptossmoe3m with Ollama:

    ollama run hf.co/shibatch/tinygptossmoe3m:MXFP4
  • Unsloth Desktop
  • Docker Model Runner

    How to use shibatch/tinygptossmoe3m with Docker Model Runner:

    docker model run hf.co/shibatch/tinygptossmoe3m:MXFP4
  • Lemonade

    How to use shibatch/tinygptossmoe3m with Lemonade:

    Pull the model
    # Download Lemonade from https://lemonade-server.ai/
    lemonade pull shibatch/tinygptossmoe3m:MXFP4
    Run and chat with the model
    lemonade run user.tinygptossmoe3m-MXFP4
    List all available models
    lemonade list
  • Atomic Chat
tinygptossmoe3m / tools
31.2 kB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 1 commit
shibatch's picture
shibatch
Upload folder using huggingface_hub
2129f51 verified 2 months ago
  • convert_tinygptoss_to_mxfp4.py
    13.4 kB
    Upload folder using huggingface_hub 2 months ago
  • generate_gptoss_mxfp4_reference.py
    13.6 kB
    Upload folder using huggingface_hub 2 months ago
  • verify_mxfp4.py
    4.2 kB
    Upload folder using huggingface_hub 2 months ago