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