Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets
  • 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

okolxc
/
openmythos-2b-edge

Text Generation
Transformers
Safetensors
mythos
Mixture of Experts
linear-attention
gated-deltanet
mla
edge
sft
grpo
Model card Files Files and versions
xet
Community

Instructions to use okolxc/openmythos-2b-edge with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use okolxc/openmythos-2b-edge with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-generation", model="okolxc/openmythos-2b-edge")
    # pip install -U transformers accelerate
    # Load model directly
    from transformers import AutoModel
    model = AutoModel.from_pretrained("okolxc/openmythos-2b-edge", device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps Settings
  • vLLM

    How to use okolxc/openmythos-2b-edge with vLLM:

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

    How to use okolxc/openmythos-2b-edge 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 "okolxc/openmythos-2b-edge" \
        --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": "okolxc/openmythos-2b-edge",
    		"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 "okolxc/openmythos-2b-edge" \
            --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": "okolxc/openmythos-2b-edge",
    		"prompt": "Once upon a time,",
    		"max_tokens": 512,
    		"temperature": 0.5
    	}'
  • Docker Model Runner

    How to use okolxc/openmythos-2b-edge with Docker Model Runner:

    docker model run hf.co/okolxc/openmythos-2b-edge
openmythos-2b-edge
33.6 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 174 commits
okolxc's picture
okolxc
Upload README.md with huggingface_hub
6ab8351 verified 2 days ago
  • scratch_2b
    Upload scratch_2b/config.json with huggingface_hub 4 days ago
  • .gitattributes
    1.52 kB
    initial commit 7 days ago
  • README.md
    5.1 kB
    Upload README.md with huggingface_hub 2 days ago
  • config.json
    1.21 kB
    Upload config.json with huggingface_hub 3 days ago
  • grpo_step12.safetensors
    5.8 GB
    xet
    Upload grpo_step12.safetensors with huggingface_hub 2 days ago
  • model-00001-of-00004.safetensors
    1.71 GB
    xet
    Upload model-00001-of-00004.safetensors with huggingface_hub 3 days ago
  • model-00002-of-00004.safetensors
    685 MB
    xet
    Upload model-00002-of-00004.safetensors with huggingface_hub 3 days ago
  • model-00003-of-00004.safetensors
    693 MB
    xet
    Upload model-00003-of-00004.safetensors with huggingface_hub 3 days ago
  • model-00004-of-00004.safetensors
    2.71 GB
    xet
    Upload model-00004-of-00004.safetensors with huggingface_hub 3 days ago
  • model.safetensors.index.json
    23.4 kB
    Upload model.safetensors.index.json with huggingface_hub 3 days ago
  • sft2_distill_step150.safetensors
    5.8 GB
    xet
    Upload sft2_distill_step150.safetensors with huggingface_hub 3 days ago