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

jun-ai
/
Rusa-1

Text Generation
Transformers
ONNX
Safetensors
GGUF
Transformers.js
English
lfm2
rewriting
humanizer
Model card Files Files and versions
xet
Community

Instructions to use jun-ai/Rusa-1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use jun-ai/Rusa-1 with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-generation", model="jun-ai/Rusa-1")
    # pip install -U transformers accelerate
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForCausalLM
    
    tokenizer = AutoTokenizer.from_pretrained("jun-ai/Rusa-1")
    model = AutoModelForCausalLM.from_pretrained("jun-ai/Rusa-1", device_map="auto")
  • Transformers.js

    How to use jun-ai/Rusa-1 with Transformers.js:

    // npm i @huggingface/transformers
    import { pipeline } from '@huggingface/transformers';
    
    // Allocate pipeline
    const pipe = await pipeline('text-generation', 'jun-ai/Rusa-1');
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps Settings
  • llama.cpp

    How to use jun-ai/Rusa-1 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 jun-ai/Rusa-1:Q4_K_M
    # Run inference directly in the terminal:
    llama cli -hf jun-ai/Rusa-1:Q4_K_M
    Install from WinGet (Windows)
    winget install llama.cpp
    # Start a local OpenAI-compatible server with a web UI:
    llama serve -hf jun-ai/Rusa-1:Q4_K_M
    # Run inference directly in the terminal:
    llama cli -hf jun-ai/Rusa-1:Q4_K_M
    Build from source code
    git clone https://github.com/ggml-org/llama.cpp.git
    cd llama.cpp
    cmake -B build
    cmake --build build -j --target llama-app
    # Start a local OpenAI-compatible server with a web UI:
    ./build/bin/llama serve -hf jun-ai/Rusa-1:Q4_K_M
    # Run inference directly in the terminal:
    ./build/bin/llama cli -hf jun-ai/Rusa-1:Q4_K_M
    Use Docker
    docker model run hf.co/jun-ai/Rusa-1:Q4_K_M
  • Llama new
  • LM Studio
  • Jan
  • vLLM

    How to use jun-ai/Rusa-1 with vLLM:

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

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

    How to use jun-ai/Rusa-1 with Ollama:

    ollama run hf.co/jun-ai/Rusa-1:Q4_K_M
  • Unsloth Desktop
  • Docker Model Runner

    How to use jun-ai/Rusa-1 with Docker Model Runner:

    docker model run hf.co/jun-ai/Rusa-1:Q4_K_M
  • Lemonade

    How to use jun-ai/Rusa-1 with Lemonade:

    Pull the model
    # Download Lemonade from https://lemonade-server.ai/
    lemonade pull jun-ai/Rusa-1:Q4_K_M
    Run and chat with the model
    lemonade run user.Rusa-1-Q4_K_M
    List all available models
    lemonade list
  • Atomic Chat
Rusa-1
5.85 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 5 commits
jun-ai's picture
jun-ai
Publish standard V1.1 models and move ternary experiments to Rusa-1-Small
7d76f93 verified 1 day ago
  • assets
    Publish standard V1.1 models and move ternary experiments to Rusa-1-Small 1 day ago
  • gguf
    Publish standard V1.1 models and move ternary experiments to Rusa-1-Small 1 day ago
  • onnx
    Release Rusa 2 days ago
  • .gitattributes
    2.37 kB
    Publish standard V1.1 models and move ternary experiments to Rusa-1-Small 1 day ago
  • LICENSE
    10.6 kB
    Release Rusa 2 days ago
  • README.md
    5.5 kB
    Publish standard V1.1 models and move ternary experiments to Rusa-1-Small 1 day ago
  • config.json
    1.58 kB
    Release Rusa 2 days ago
  • generation_config.json
    132 Bytes
    Release Rusa 2 days ago
  • model.safetensors
    709 MB
    xet
    Release Rusa 2 days ago
  • special_tokens_map.json
    434 Bytes
    Release Rusa 2 days ago
  • tokenizer.json
    4.73 MB
    Release Rusa 2 days ago
  • tokenizer_config.json
    91.6 kB
    Release Rusa 2 days ago