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

  • Log In
  • Sign Up

solidrust
/
Persephone_7B-AWQ

Text Generation
Transformers
Safetensors
English
mistral
mergekit
Merge
4-bit precision
AWQ
chatml
text-generation-inference
awq
Model card Files Files and versions
xet
Community

Instructions to use solidrust/Persephone_7B-AWQ with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use solidrust/Persephone_7B-AWQ with Transformers:

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

    How to use solidrust/Persephone_7B-AWQ with vLLM:

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

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

    How to use solidrust/Persephone_7B-AWQ with Docker Model Runner:

    docker model run hf.co/solidrust/Persephone_7B-AWQ
Persephone_7B-AWQ
4.15 GB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 6 commits
Suparious's picture
Suparious
Updated base_model tag in README.md
9ff0d09 verified over 1 year ago
  • .gitattributes
    1.52 kB
    initial commit about 2 years ago
  • README.md
    3.44 kB
    Updated base_model tag in README.md over 1 year ago
  • config.json
    970 Bytes
    adding awq model about 2 years ago
  • generation_config.json
    175 Bytes
    adding awq model about 2 years ago
  • model.safetensors
    4.15 GB
    xet
    adding awq model about 2 years ago
  • quant_config.json
    82 Bytes
    add quant config about 2 years ago
  • special_tokens_map.json
    625 Bytes
    adding awq model about 2 years ago
  • tokenizer.json
    1.8 MB
    adding awq model about 2 years ago
  • tokenizer.model
    493 kB
    xet
    adding awq model about 2 years ago
  • tokenizer_config.json
    1.01 kB
    adding awq model about 2 years ago