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

AshishDwi99
/
sage

Text Generation
Transformers
Safetensors
GGUF
qwen2
code
autocomplete
next-edit
zed
text-generation-inference
Model card Files Files and versions
xet
Community

Instructions to use AshishDwi99/sage with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use AshishDwi99/sage with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-generation", model="AshishDwi99/sage")
    # pip install -U transformers accelerate
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForCausalLM
    
    tokenizer = AutoTokenizer.from_pretrained("AshishDwi99/sage")
    model = AutoModelForCausalLM.from_pretrained("AshishDwi99/sage", device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps Settings
  • llama.cpp

    How to use AshishDwi99/sage 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 AshishDwi99/sage:Q8_0
    # Run inference directly in the terminal:
    llama cli -hf AshishDwi99/sage:Q8_0
    Install from WinGet (Windows)
    winget install llama.cpp
    # Start a local OpenAI-compatible server with a web UI:
    llama serve -hf AshishDwi99/sage:Q8_0
    # Run inference directly in the terminal:
    llama cli -hf AshishDwi99/sage:Q8_0
    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 AshishDwi99/sage:Q8_0
    # Run inference directly in the terminal:
    ./llama-cli -hf AshishDwi99/sage:Q8_0
    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 AshishDwi99/sage:Q8_0
    # Run inference directly in the terminal:
    ./build/bin/llama-cli -hf AshishDwi99/sage:Q8_0
    Use Docker
    docker model run hf.co/AshishDwi99/sage:Q8_0
  • Llama new
  • LM Studio
  • Jan
  • vLLM

    How to use AshishDwi99/sage with vLLM:

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

    How to use AshishDwi99/sage 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 "AshishDwi99/sage" \
        --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": "AshishDwi99/sage",
    		"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 "AshishDwi99/sage" \
            --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": "AshishDwi99/sage",
    		"prompt": "Once upon a time,",
    		"max_tokens": 512,
    		"temperature": 0.5
    	}'
  • Ollama

    How to use AshishDwi99/sage with Ollama:

    ollama run hf.co/AshishDwi99/sage:Q8_0
  • Unsloth Desktop
  • Docker Model Runner

    How to use AshishDwi99/sage with Docker Model Runner:

    docker model run hf.co/AshishDwi99/sage:Q8_0
  • Lemonade

    How to use AshishDwi99/sage with Lemonade:

    Pull the model
    # Download Lemonade from https://lemonade-server.ai/
    lemonade pull AshishDwi99/sage:Q8_0
    Run and chat with the model
    lemonade run user.sage-Q8_0
    List all available models
    lemonade list
  • Atomic Chat
sage
4.43 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
AshishDwi99's picture
AshishDwi99
Sage: weights, GGUF and card (run v3)
89d9600 verified 4 days ago
  • .gitattributes
    1.58 kB
    Sage: weights, GGUF and card (run v3) 4 days ago
  • README.md
    4.85 kB
    Sage: weights, GGUF and card (run v3) 4 days ago
  • config.json
    786 Bytes
    Sage: weights, GGUF and card (run v3) 4 days ago
  • generation_config.json
    119 Bytes
    Sage: weights, GGUF and card (run v3) 4 days ago
  • merges.txt
    376 kB
    Sage: weights, GGUF and card (run v3) 4 days ago
  • metrics.json
    1.16 kB
    Sage: weights, GGUF and card (run v3) 4 days ago
  • model.safetensors
    2.89 GB
    xet
    Sage: weights, GGUF and card (run v3) 4 days ago
  • sage-1.5b-q8_0.gguf
    1.54 GB
    xet
    Sage: weights, GGUF and card (run v3) 4 days ago
  • special_tokens_map.json
    441 Bytes
    Sage: weights, GGUF and card (run v3) 4 days ago
  • tokenizer.json
    3.06 MB
    Sage: weights, GGUF and card (run v3) 4 days ago
  • tokenizer_config.json
    924 Bytes
    Sage: weights, GGUF and card (run v3) 4 days ago
  • vocab.json
    674 kB
    Sage: weights, GGUF and card (run v3) 4 days ago