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

MuXue1230
/
Y-QB-2B-Omini

Text Generation
Transformers
Chinese
experimental
lora
Model card Files Files and versions
xet
Community

Instructions to use MuXue1230/Y-QB-2B-Omini with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use MuXue1230/Y-QB-2B-Omini with Transformers:

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

    How to use MuXue1230/Y-QB-2B-Omini with vLLM:

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

    How to use MuXue1230/Y-QB-2B-Omini 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 "MuXue1230/Y-QB-2B-Omini" \
        --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": "MuXue1230/Y-QB-2B-Omini",
    		"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 "MuXue1230/Y-QB-2B-Omini" \
            --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": "MuXue1230/Y-QB-2B-Omini",
    		"prompt": "Once upon a time,",
    		"max_tokens": 512,
    		"temperature": 0.5
    	}'
  • Docker Model Runner

    How to use MuXue1230/Y-QB-2B-Omini with Docker Model Runner:

    docker model run hf.co/MuXue1230/Y-QB-2B-Omini
Y-QB-2B-Omini
674 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 123 commits
MuXue1230's picture
MuXue1230
Add local chat checkpoint catalog under MIT
42860ce verified about 10 hours ago
  • checkpoints
    Add local chat checkpoint catalog under MIT about 10 hours ago
  • reports
    Publish actual R31 versus R25 continuous behavior review about 18 hours ago
  • .gitattributes
    1.52 kB
    initial commit 3 days ago
  • LICENSE
    1.07 kB
    Release locally reviewed r21-clean under MIT 3 days ago
  • NOTICE.md
    1.29 kB
    Release locally reviewed r21-clean under MIT 3 days ago
  • README.md
    2.03 kB
    Link current training and review status 2 days ago
  • TRAINING_STATUS.md
    821 Bytes
    Update local training status: d3-corpus-r31-clean-learning-rate about 18 hours ago
  • training-status.json
    25.6 kB
    Update local training status: d3-corpus-r31-clean-learning-rate about 18 hours ago