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

Axion1-0
/
Axion-1.0-35B

Text Generation
Transformers
Safetensors
qwen3_5_moe
image-text-to-text
reproduction
agent
tool-use
scientific-reasoning
Mixture of Experts
conversational
Model card Files Files and versions
xet
Community

Instructions to use Axion1-0/Axion-1.0-35B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use Axion1-0/Axion-1.0-35B with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-generation", model="Axion1-0/Axion-1.0-35B")
    messages = [
        {
            "role": "user",
            "content": [
                {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"},
                {"type": "text", "text": "What animal is on the candy?"}
            ]
        },
    ]
    pipe(text=messages)
    # pip install -U transformers accelerate
    # Load model directly
    from transformers import AutoProcessor, AutoModelForMultimodalLM
    
    processor = AutoProcessor.from_pretrained("Axion1-0/Axion-1.0-35B")
    model = AutoModelForMultimodalLM.from_pretrained("Axion1-0/Axion-1.0-35B", device_map="auto")
    messages = [
        {
            "role": "user",
            "content": [
                {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"},
                {"type": "text", "text": "What animal is on the candy?"}
            ]
        },
    ]
    inputs = processor.apply_chat_template(
    	messages,
    	add_generation_prompt=True,
    	tokenize=True,
    	return_dict=True,
    	return_tensors="pt",
    ).to(model.device)
    
    outputs = model.generate(**inputs, max_new_tokens=256)
    print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:]))
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps Settings
  • vLLM

    How to use Axion1-0/Axion-1.0-35B with vLLM:

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

    How to use Axion1-0/Axion-1.0-35B 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 "Axion1-0/Axion-1.0-35B" \
        --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": "Axion1-0/Axion-1.0-35B",
    		"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 "Axion1-0/Axion-1.0-35B" \
            --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": "Axion1-0/Axion-1.0-35B",
    		"messages": [
    			{
    				"role": "user",
    				"content": "What is the capital of France?"
    			}
    		]
    	}'
  • Docker Model Runner

    How to use Axion1-0/Axion-1.0-35B with Docker Model Runner:

    docker model run hf.co/Axion1-0/Axion-1.0-35B
Axion-1.0-35B
70.2 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 10 commits
ChrisBullet's picture
ChrisBullet
Update README.md
d4fdb2d verified about 5 hours ago
  • .gitattributes
    1.57 kB
    Add model weights 19 days ago
  • LICENSE
    11.4 kB
    Update LICENSE about 12 hours ago
  • README.md
    4.56 kB
    Update README.md about 5 hours ago
  • chat_template.jinja
    7.76 kB
    Add model weights 19 days ago
  • config.json
    3.39 kB
    Add model weights 19 days ago
  • model-00001.safetensors
    5.97 GB
    xet
    Add model weights 19 days ago
  • model-00002.safetensors
    5.58 GB
    xet
    Add model weights 19 days ago
  • model-00003.safetensors
    6.13 GB
    xet
    Add model weights 19 days ago
  • model-00004.safetensors
    5.58 GB
    xet
    Add model weights 19 days ago
  • model-00005.safetensors
    6.12 GB
    xet
    Add model weights 19 days ago
  • model-00006.safetensors
    5.58 GB
    xet
    Add model weights 19 days ago
  • model-00007.safetensors
    6.31 GB
    xet
    Add model weights 19 days ago
  • model-00008.safetensors
    5.54 GB
    xet
    Add model weights 19 days ago
  • model-00009.safetensors
    6.13 GB
    xet
    Add model weights 19 days ago
  • model-00010.safetensors
    5.58 GB
    xet
    Add model weights 19 days ago
  • model-00011.safetensors
    6.33 GB
    xet
    Add model weights 19 days ago
  • model-00012.safetensors
    5.38 GB
    xet
    Add model weights 19 days ago
  • model.safetensors.index.json
    83.5 kB
    Add model weights 19 days ago
  • processor_config.json
    1.19 kB
    Add model weights 19 days ago
  • tokenizer.json
    20 MB
    xet
    Add model weights 19 days ago
  • tokenizer_config.json
    1.17 kB
    Add model weights 19 days ago