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

EchoLabs33
/
zamba2-2.7b-instruct-hxq

Text Generation
Transformers
Safetensors
GGUF
English
zamba2
mamba
hybrid
compressed
hxq
helix-substrate
vector-quantization
conversational
Eval Results (legacy)
8-bit precision
Model card Files Files and versions
xet
Community

Instructions to use EchoLabs33/zamba2-2.7b-instruct-hxq with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use EchoLabs33/zamba2-2.7b-instruct-hxq with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-generation", model="EchoLabs33/zamba2-2.7b-instruct-hxq")
    messages = [
        {"role": "user", "content": "Who are you?"},
    ]
    pipe(messages)
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForCausalLM
    
    tokenizer = AutoTokenizer.from_pretrained("EchoLabs33/zamba2-2.7b-instruct-hxq")
    model = AutoModelForCausalLM.from_pretrained("EchoLabs33/zamba2-2.7b-instruct-hxq", device_map="auto")
    messages = [
        {"role": "user", "content": "Who are you?"},
    ]
    inputs = tokenizer.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=40)
    print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:]))
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps Settings
  • llama.cpp

    How to use EchoLabs33/zamba2-2.7b-instruct-hxq with llama.cpp:

    Install (macOS, Linux)
    curl -LsSf https://llama.app/install.sh | sh
    # Start a local OpenAI-compatible server with a web UI:
    llama serve -hf EchoLabs33/zamba2-2.7b-instruct-hxq
    # Run inference directly in the terminal:
    llama cli -hf EchoLabs33/zamba2-2.7b-instruct-hxq
    Install from WinGet (Windows)
    winget install llama.cpp
    # Start a local OpenAI-compatible server with a web UI:
    llama serve -hf EchoLabs33/zamba2-2.7b-instruct-hxq
    # Run inference directly in the terminal:
    llama cli -hf EchoLabs33/zamba2-2.7b-instruct-hxq
    Use pre-built binary
    # Download pre-built binary from:
    # https://github.com/ggerganov/llama.cpp/releases
    # Start a local OpenAI-compatible server with a web UI:
    ./llama-server -hf EchoLabs33/zamba2-2.7b-instruct-hxq
    # Run inference directly in the terminal:
    ./llama-cli -hf EchoLabs33/zamba2-2.7b-instruct-hxq
    Build from source code
    git clone https://github.com/ggerganov/llama.cpp.git
    cd llama.cpp
    cmake -B build
    cmake --build build -j --target llama-server llama-cli
    # Start a local OpenAI-compatible server with a web UI:
    ./build/bin/llama-server -hf EchoLabs33/zamba2-2.7b-instruct-hxq
    # Run inference directly in the terminal:
    ./build/bin/llama-cli -hf EchoLabs33/zamba2-2.7b-instruct-hxq
    Use Docker
    docker model run hf.co/EchoLabs33/zamba2-2.7b-instruct-hxq
  • LM Studio
  • Jan
  • vLLM

    How to use EchoLabs33/zamba2-2.7b-instruct-hxq with vLLM:

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

    How to use EchoLabs33/zamba2-2.7b-instruct-hxq 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 "EchoLabs33/zamba2-2.7b-instruct-hxq" \
        --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": "EchoLabs33/zamba2-2.7b-instruct-hxq",
    		"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 "EchoLabs33/zamba2-2.7b-instruct-hxq" \
            --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": "EchoLabs33/zamba2-2.7b-instruct-hxq",
    		"messages": [
    			{
    				"role": "user",
    				"content": "What is the capital of France?"
    			}
    		]
    	}'
  • Ollama

    How to use EchoLabs33/zamba2-2.7b-instruct-hxq with Ollama:

    ollama run hf.co/EchoLabs33/zamba2-2.7b-instruct-hxq
  • Unsloth Desktop
  • Docker Model Runner

    How to use EchoLabs33/zamba2-2.7b-instruct-hxq with Docker Model Runner:

    docker model run hf.co/EchoLabs33/zamba2-2.7b-instruct-hxq
  • Lemonade

    How to use EchoLabs33/zamba2-2.7b-instruct-hxq with Lemonade:

    Pull the model
    # Download Lemonade from https://lemonade-server.ai/
    lemonade pull EchoLabs33/zamba2-2.7b-instruct-hxq
    Run and chat with the model
    lemonade run user.zamba2-2.7b-instruct-hxq-{{QUANT_TAG}}
    List all available models
    lemonade list
  • Atomic Chat
zamba2-2.7b-instruct-hxq
5.75 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 10 commits
voidstream's picture
voidstream
feat: add HXQ_AFFINE_6 GGUF (6.27 bpw, RTX 3090 benchmarked)
d070b6e verified 4 months ago
  • .gitattributes
    1.59 kB
    feat: add HXQ_AFFINE_6 GGUF (6.27 bpw, RTX 3090 benchmarked) 4 months ago
  • README.md
    7.02 kB
    docs: add GGUF runtime benchmark tables (RTX 3090, 4-way comparison) 4 months ago
  • audit_completeness_gate.json
    14.7 kB
    Recompressed with skip-tensor fix (147 modules, 162 SSM params restored, conversion_receipt PASS) 6 months ago
  • config.json
    9.46 kB
    Upload config.json with huggingface_hub 6 months ago
  • conversion_receipt.json
    398 Bytes
    Recompressed with skip-tensor fix (147 modules, 162 SSM params restored, conversion_receipt PASS) 6 months ago
  • model.safetensors
    2.75 GB
    xet
    Recompressed with skip-tensor fix (147 modules, 162 SSM params restored, conversion_receipt PASS) 6 months ago
  • special_tokens_map.json
    504 Bytes
    Upload folder using huggingface_hub 6 months ago
  • tokenizer.json
    1.8 MB
    Upload folder using huggingface_hub 6 months ago
  • tokenizer_config.json
    1.37 kB
    Upload folder using huggingface_hub 6 months ago
  • zamba2-2.7b-instruct-hxq-affine6.gguf
    3 GB
    xet
    feat: add HXQ_AFFINE_6 GGUF (6.27 bpw, RTX 3090 benchmarked) 4 months ago