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

silx-ai
/
Quasar-3B-A1B-Preview

Text Generation
Transformers
Safetensors
English
Arabic
quasar
silx-ai
foundation-model
3b
Mixture of Experts
long-context
bittensor
sn24
distillation
hybrid-transformer
conversational
custom_code
Model card Files Files and versions
xet
Community

Instructions to use silx-ai/Quasar-3B-A1B-Preview with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use silx-ai/Quasar-3B-A1B-Preview with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-generation", model="silx-ai/Quasar-3B-A1B-Preview", trust_remote_code=True)
    messages = [
        {"role": "user", "content": "Who are you?"},
    ]
    pipe(messages)
    # Load model directly
    from transformers import AutoModel
    model = AutoModel.from_pretrained("silx-ai/Quasar-3B-A1B-Preview", trust_remote_code=True, dtype="auto")
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps Settings
  • vLLM

    How to use silx-ai/Quasar-3B-A1B-Preview with vLLM:

    Install from pip and serve model
    # Install vLLM from pip:
    pip install vllm
    # Start the vLLM server:
    vllm serve "silx-ai/Quasar-3B-A1B-Preview"
    # Call the server using curl (OpenAI-compatible API):
    curl -X POST "http://localhost:8000/v1/chat/completions" \
    	-H "Content-Type: application/json" \
    	--data '{
    		"model": "silx-ai/Quasar-3B-A1B-Preview",
    		"messages": [
    			{
    				"role": "user",
    				"content": "What is the capital of France?"
    			}
    		]
    	}'
    Use Docker
    docker model run hf.co/silx-ai/Quasar-3B-A1B-Preview
  • SGLang

    How to use silx-ai/Quasar-3B-A1B-Preview 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 "silx-ai/Quasar-3B-A1B-Preview" \
        --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": "silx-ai/Quasar-3B-A1B-Preview",
    		"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 "silx-ai/Quasar-3B-A1B-Preview" \
            --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": "silx-ai/Quasar-3B-A1B-Preview",
    		"messages": [
    			{
    				"role": "user",
    				"content": "What is the capital of France?"
    			}
    		]
    	}'
  • Docker Model Runner

    How to use silx-ai/Quasar-3B-A1B-Preview with Docker Model Runner:

    docker model run hf.co/silx-ai/Quasar-3B-A1B-Preview
Quasar-3B-A1B-Preview
5.9 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 10 commits
eyad-silx's picture
eyad-silx
Update modeling_quasar.py
92c0c2c verified about 1 month ago
  • .gitattributes
    1.62 kB
    Upload Quasar.png about 2 months ago
  • Quasar.png
    234 kB
    xet
    Upload Quasar.png about 2 months ago
  • README.md
    7.06 kB
    Create README.md about 2 months ago
  • config.json
    1.25 kB
    Update config.json about 1 month ago
  • configuration_quasar.py
    6.68 kB
    Upload 2 files about 1 month ago
  • merges.txt
    3.35 MB
    Upload folder using huggingface_hub about 2 months ago
  • model.safetensors
    5.88 GB
    xet
    Upload folder using huggingface_hub about 2 months ago
  • modeling_quasar.py
    45.5 kB
    Update modeling_quasar.py about 1 month ago
  • tokenizer.json
    12.8 MB
    xet
    Upload folder using huggingface_hub about 2 months ago
  • tokenizer_config.json
    16.7 kB
    Upload folder using huggingface_hub about 2 months ago
  • vocab.json
    6.72 MB
    Upload folder using huggingface_hub about 2 months ago