Text Generation
Transformers
PyTorch
TensorBoard
llama
Trained with AutoTrain
text-generation-inference
Instructions to use Vermath/llama-2_hank with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Vermath/llama-2_hank with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Vermath/llama-2_hank")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Vermath/llama-2_hank") model = AutoModelForCausalLM.from_pretrained("Vermath/llama-2_hank", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Vermath/llama-2_hank with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Vermath/llama-2_hank" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Vermath/llama-2_hank", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Vermath/llama-2_hank
- SGLang
How to use Vermath/llama-2_hank 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 "Vermath/llama-2_hank" \ --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": "Vermath/llama-2_hank", "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 "Vermath/llama-2_hank" \ --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": "Vermath/llama-2_hank", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Vermath/llama-2_hank with Docker Model Runner:
docker model run hf.co/Vermath/llama-2_hank
Download adapter_model.bin from Vermath/llama-2_hank: direct link, hf CLI and curl.
- Browser
- Download file 33.6 MB
-
https://huggingface.co/Vermath/llama-2_hank/resolve/main/adapter_model.bin
- Command line
-
hf download hf://Vermath/llama-2_hank/adapter_model.bin
-
curl -L -o adapter_model.bin https://huggingface.co/Vermath/llama-2_hank/resolve/main/adapter_model.bin
33.6 MB
- Xet hash:
- 5356d68e8c167a83ed7be5adeef1cb9d8d62a60f8ea461652984efa40ddd6bb0
- Size of remote file:
- 33.6 MB
- SHA256:
- 8c94d7af5fdda5e2342ac4e35e9243c2ab774a5430ba030069bcb354933c936c
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.