Text Generation
Transformers
Safetensors
English
llama
kronq
quantization
group-quantization
fake-quant
fp16
text-generation-inference
Instructions to use donghyunli/Llama-2-13b-KronQ-W3A16-g128-fake with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use donghyunli/Llama-2-13b-KronQ-W3A16-g128-fake with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="donghyunli/Llama-2-13b-KronQ-W3A16-g128-fake")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("donghyunli/Llama-2-13b-KronQ-W3A16-g128-fake") model = AutoModelForCausalLM.from_pretrained("donghyunli/Llama-2-13b-KronQ-W3A16-g128-fake", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use donghyunli/Llama-2-13b-KronQ-W3A16-g128-fake with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "donghyunli/Llama-2-13b-KronQ-W3A16-g128-fake" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "donghyunli/Llama-2-13b-KronQ-W3A16-g128-fake", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/donghyunli/Llama-2-13b-KronQ-W3A16-g128-fake
- SGLang
How to use donghyunli/Llama-2-13b-KronQ-W3A16-g128-fake 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 "donghyunli/Llama-2-13b-KronQ-W3A16-g128-fake" \ --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": "donghyunli/Llama-2-13b-KronQ-W3A16-g128-fake", "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 "donghyunli/Llama-2-13b-KronQ-W3A16-g128-fake" \ --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": "donghyunli/Llama-2-13b-KronQ-W3A16-g128-fake", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use donghyunli/Llama-2-13b-KronQ-W3A16-g128-fake with Docker Model Runner:
docker model run hf.co/donghyunli/Llama-2-13b-KronQ-W3A16-g128-fake
- Xet hash:
- fe760a8c3611185f2d4e5eca3ab3e143aa250e450934976c47ca21102e8c3313
- Size of remote file:
- 26 GB
- SHA256:
- 83cb92e244888cb24f9f961dec774d33c6f6f21b6d094b9522d212abd5adf366
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.