Instructions to use TheBloke/Upstage-Llama-2-70B-instruct-v2-GGML with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use TheBloke/Upstage-Llama-2-70B-instruct-v2-GGML with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="TheBloke/Upstage-Llama-2-70B-instruct-v2-GGML")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("TheBloke/Upstage-Llama-2-70B-instruct-v2-GGML", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use TheBloke/Upstage-Llama-2-70B-instruct-v2-GGML with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "TheBloke/Upstage-Llama-2-70B-instruct-v2-GGML" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "TheBloke/Upstage-Llama-2-70B-instruct-v2-GGML", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/TheBloke/Upstage-Llama-2-70B-instruct-v2-GGML
- SGLang
How to use TheBloke/Upstage-Llama-2-70B-instruct-v2-GGML 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 "TheBloke/Upstage-Llama-2-70B-instruct-v2-GGML" \ --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": "TheBloke/Upstage-Llama-2-70B-instruct-v2-GGML", "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 "TheBloke/Upstage-Llama-2-70B-instruct-v2-GGML" \ --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": "TheBloke/Upstage-Llama-2-70B-instruct-v2-GGML", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use TheBloke/Upstage-Llama-2-70B-instruct-v2-GGML with Docker Model Runner:
docker model run hf.co/TheBloke/Upstage-Llama-2-70B-instruct-v2-GGML
Download upstage-llama-2-70b-instruct-v2.ggmlv3.q4_K_S.bin from TheBloke/Upstage-Llama-2-70B-instruct-v2-GGML: direct link, hf CLI and curl.
- Browser
- Download file 38.9 GB
-
https://huggingface.co/TheBloke/Upstage-Llama-2-70B-instruct-v2-GGML/resolve/67c5f6338131ff6e99473e8375a400ca14d0b0d3/upstage-llama-2-70b-instruct-v2.ggmlv3.q4_K_S.bin
- Command line
-
hf download hf://TheBloke/Upstage-Llama-2-70B-instruct-v2-GGML@67c5f6338131ff6e99473e8375a400ca14d0b0d3/upstage-llama-2-70b-instruct-v2.ggmlv3.q4_K_S.bin
-
curl -L -o upstage-llama-2-70b-instruct-v2.ggmlv3.q4_K_S.bin https://huggingface.co/TheBloke/Upstage-Llama-2-70B-instruct-v2-GGML/resolve/67c5f6338131ff6e99473e8375a400ca14d0b0d3/upstage-llama-2-70b-instruct-v2.ggmlv3.q4_K_S.bin
38.9 GB
- Xet hash:
- b000f076e943cb281a16110292440cdc1580f03d335a4835e7bc1166901d8dc8
- Size of remote file:
- 38.9 GB
- SHA256:
- 06006b772397b5b23a2e37b792899a11a4cdbf170075cf37a4afdcf828079b85
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.