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

psikosen
/
mini-swarm-browser-258m

Text Generation
Transformers
Safetensors
canopy
browser-use
web-agents
multi-agent
set-of-marks
small-language-models
Mixture of Experts
conversational
custom_code
Model card Files Files and versions
xet
Community

Instructions to use psikosen/mini-swarm-browser-258m with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use psikosen/mini-swarm-browser-258m with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-generation", model="psikosen/mini-swarm-browser-258m", trust_remote_code=True)
    messages = [
        {"role": "user", "content": "Who are you?"},
    ]
    pipe(messages)
    # Load model directly
    from transformers import AutoModelForCausalLM
    model = AutoModelForCausalLM.from_pretrained("psikosen/mini-swarm-browser-258m", trust_remote_code=True, device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps Settings
  • vLLM

    How to use psikosen/mini-swarm-browser-258m with vLLM:

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

    How to use psikosen/mini-swarm-browser-258m 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 "psikosen/mini-swarm-browser-258m" \
        --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": "psikosen/mini-swarm-browser-258m",
    		"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 "psikosen/mini-swarm-browser-258m" \
            --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": "psikosen/mini-swarm-browser-258m",
    		"messages": [
    			{
    				"role": "user",
    				"content": "What is the capital of France?"
    			}
    		]
    	}'
  • Docker Model Runner

    How to use psikosen/mini-swarm-browser-258m with Docker Model Runner:

    docker model run hf.co/psikosen/mini-swarm-browser-258m
mini-swarm-browser-258m
596 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
psikosen's picture
psikosen
Deploy Mini-Swarm-Browser 258M Multi-Agent Model & Swarm Code
66628a8 verified 8 days ago
  • miniswardbower
    Deploy Mini-Swarm-Browser 258M Multi-Agent Model & Swarm Code 8 days ago
  • .gitattributes
    1.52 kB
    initial commit 8 days ago
  • README.md
    4.02 kB
    Deploy Mini-Swarm-Browser 258M Multi-Agent Model & Swarm Code 8 days ago
  • config.json
    962 Bytes
    Deploy Mini-Swarm-Browser 258M Multi-Agent Model & Swarm Code 8 days ago
  • configuration_canopy.py
    2.56 kB
    Deploy Mini-Swarm-Browser 258M Multi-Agent Model & Swarm Code 8 days ago
  • merges.txt
    466 kB
    Deploy Mini-Swarm-Browser 258M Multi-Agent Model & Swarm Code 8 days ago
  • model.safetensors
    593 MB
    xet
    Deploy Mini-Swarm-Browser 258M Multi-Agent Model & Swarm Code 8 days ago
  • modeling_canopy.py
    23.3 kB
    Deploy Mini-Swarm-Browser 258M Multi-Agent Model & Swarm Code 8 days ago
  • special_tokens_map.json
    831 Bytes
    Deploy Mini-Swarm-Browser 258M Multi-Agent Model & Swarm Code 8 days ago
  • test_interactive.py
    5.04 kB
    Deploy Mini-Swarm-Browser 258M Multi-Agent Model & Swarm Code 8 days ago
  • tokenizer.json
    2.1 MB
    Deploy Mini-Swarm-Browser 258M Multi-Agent Model & Swarm Code 8 days ago
  • tokenizer_config.json
    3.91 kB
    Deploy Mini-Swarm-Browser 258M Multi-Agent Model & Swarm Code 8 days ago
  • vocab.json
    801 kB
    Deploy Mini-Swarm-Browser 258M Multi-Agent Model & Swarm Code 8 days ago