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
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

Leokratis
/
Karen

Text Generation
Transformers
GGUF
English
Karen
Model card Files Files and versions
xet
Community

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

  • Libraries
  • Transformers

    How to use Leokratis/Karen with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-generation", model="Leokratis/Karen")
    # Load model directly
    from transformers import AutoModel
    model = AutoModel.from_pretrained("Leokratis/Karen", dtype="auto")
  • llama-cpp-python

    How to use Leokratis/Karen with llama-cpp-python:

    # !pip install llama-cpp-python
    
    from llama_cpp import Llama
    
    llm = Llama.from_pretrained(
    	repo_id="Leokratis/Karen",
    	filename="Karen.gguf",
    )
    
    output = llm(
    	"Once upon a time,",
    	max_tokens=512,
    	echo=True
    )
    print(output)
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps
  • llama.cpp

    How to use Leokratis/Karen with llama.cpp:

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

    How to use Leokratis/Karen with vLLM:

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

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

    How to use Leokratis/Karen with Ollama:

    ollama run hf.co/Leokratis/Karen
  • Unsloth Studio new

    How to use Leokratis/Karen with Unsloth Studio:

    Install Unsloth Studio (macOS, Linux, WSL)
    curl -fsSL https://unsloth.ai/install.sh | sh
    # Run unsloth studio
    unsloth studio -H 0.0.0.0 -p 8888
    # Then open http://localhost:8888 in your browser
    # Search for Leokratis/Karen to start chatting
    Install Unsloth Studio (Windows)
    irm https://unsloth.ai/install.ps1 | iex
    # Run unsloth studio
    unsloth studio -H 0.0.0.0 -p 8888
    # Then open http://localhost:8888 in your browser
    # Search for Leokratis/Karen to start chatting
    Using HuggingFace Spaces for Unsloth
    # No setup required
    # Open https://huggingface.co/spaces/unsloth/studio in your browser
    # Search for Leokratis/Karen to start chatting
  • Docker Model Runner

    How to use Leokratis/Karen with Docker Model Runner:

    docker model run hf.co/Leokratis/Karen
  • Lemonade

    How to use Leokratis/Karen with Lemonade:

    Pull the model
    # Download Lemonade from https://lemonade-server.ai/
    lemonade pull Leokratis/Karen
    Run and chat with the model
    lemonade run user.Karen-{{QUANT_TAG}}
    List all available models
    lemonade list
Karen
4.11 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 11 commits
Leokratis's picture
Leokratis
Update requirements.txt
8d782e7 over 2 years ago
  • .gitattributes
    1.64 kB
    Rename mistral-7b-instruct-v0.1.Q4_0.gguf to Karen.gguf over 2 years ago
  • Karen.gguf
    4.11 GB
    xet
    Rename mistral-7b-instruct-v0.1.Q4_0.gguf to Karen.gguf over 2 years ago
  • README.md
    4.67 kB
    Update README.md over 2 years ago
  • app.py
    2.77 kB
    Rename run.py to app.py over 2 years ago
  • config.json
    367 Bytes
    Update config.json over 2 years ago
  • requirements.txt
    15 Bytes
    Update requirements.txt over 2 years ago