Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

Blackroot
/
openchat-for-exllama

Text Generation
Transformers
llama
Model card Files Files and versions
xet
Community

Instructions to use Blackroot/openchat-for-exllama with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use Blackroot/openchat-for-exllama with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-generation", model="Blackroot/openchat-for-exllama")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForCausalLM
    
    tokenizer = AutoTokenizer.from_pretrained("Blackroot/openchat-for-exllama")
    model = AutoModelForCausalLM.from_pretrained("Blackroot/openchat-for-exllama")
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps
  • vLLM

    How to use Blackroot/openchat-for-exllama with vLLM:

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

    How to use Blackroot/openchat-for-exllama 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 "Blackroot/openchat-for-exllama" \
        --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": "Blackroot/openchat-for-exllama",
    		"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 "Blackroot/openchat-for-exllama" \
            --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": "Blackroot/openchat-for-exllama",
    		"prompt": "Once upon a time,",
    		"max_tokens": 512,
    		"temperature": 0.5
    	}'
  • Docker Model Runner

    How to use Blackroot/openchat-for-exllama with Docker Model Runner:

    docker model run hf.co/Blackroot/openchat-for-exllama
openchat-for-exllama
8.01 GB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 3 commits
Blackroot's picture
Blackroot
Create README.md
b15333e almost 3 years ago
  • .gitattributes
    1.57 kB
    Initial almost 3 years ago
  • README.md
    100 Bytes
    Create README.md almost 3 years ago
  • added_tokens.json
    31 Bytes
    Initial almost 3 years ago
  • config.json
    540 Bytes
    Initial almost 3 years ago
  • openchat-4bit-32g.safetensors
    8 GB
    xet
    Initial almost 3 years ago
  • quantize_config.json
    183 Bytes
    Initial almost 3 years ago
  • special_tokens_map.json
    471 Bytes
    Initial almost 3 years ago
  • tokenizer.json
    1.84 MB
    Initial almost 3 years ago
  • tokenizer.model
    500 kB
    xet
    Initial almost 3 years ago
  • tokenizer_config.json
    676 Bytes
    Initial almost 3 years ago