Text Generation
Transformers
Safetensors
English
llama
sunset-boulevard
llama-2
llama-2-chat
70b
text-generation-inference
Instructions to use sequelbox/Llama2-70B-SunsetBoulevard with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use sequelbox/Llama2-70B-SunsetBoulevard with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="sequelbox/Llama2-70B-SunsetBoulevard")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("sequelbox/Llama2-70B-SunsetBoulevard") model = AutoModelForCausalLM.from_pretrained("sequelbox/Llama2-70B-SunsetBoulevard", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use sequelbox/Llama2-70B-SunsetBoulevard with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "sequelbox/Llama2-70B-SunsetBoulevard" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "sequelbox/Llama2-70B-SunsetBoulevard", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/sequelbox/Llama2-70B-SunsetBoulevard
- SGLang
How to use sequelbox/Llama2-70B-SunsetBoulevard 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 "sequelbox/Llama2-70B-SunsetBoulevard" \ --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": "sequelbox/Llama2-70B-SunsetBoulevard", "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 "sequelbox/Llama2-70B-SunsetBoulevard" \ --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": "sequelbox/Llama2-70B-SunsetBoulevard", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use sequelbox/Llama2-70B-SunsetBoulevard with Docker Model Runner:
docker model run hf.co/sequelbox/Llama2-70B-SunsetBoulevard
Commit History
-
Upload folder using huggingface_hub
Verified signature1b2a7ef
-
Create README.md
b6070e4
-
Delete .ipynb_checkpoints
0f77255 -
Upload folder using huggingface_hub (#1)
- 9c82fd413cd73f34be491ec59215ef748ca362ebaa20946ef1281066e7ecd523 (06711a3b4809f16c20b0b7e485b055a36f549900) - c63845d983b7a13a149619dc482d4aa80f520a8ec373952a659fdaf462f5ad9c (500828fe9a7b6a4d8ccbda23ad0d74a38290a97b) - b7a6c1e7c04fa3909cf7eed5a5f57d4306de7645c88707874d83a8cfa6c23428 (1b974ae42affff61265941779a175785e82b1f55) - 868a4232880b2c4c773e4dde3d05235b23ebea5f9349385ebb5eb2c9aba658f4 (befd1620c4d3c5167130b1f76cb0ee9c8fb7f343) - 3907612e78014d0097bc20f5b24abcf6db0da56ce6ae81fbc2c41afc0c57862f (e85895471f884c0be8c1e848fc047561dcd965dd) - a8f347a92317fb1727d459a2cb1a93be75e7de2422acf3865097fc40acc5175d (e9110a273b1decedff0528bc78d9400f2758e6f2) - 25266eb8e54843585c2c2d0a73d5bd8930e931580cd8c879baa6f9ceed87210c (a1fe6a88e21daae69e9d81dafa9e0c716091bd97) - 4d5f0f54cf316b1a11a1e7bdd7df8a3c2519ca1bcda1234f6b4883befbbd8ee6 (a22695adb0b05713ad0c2a7b3a7a85580ab15083) - 6dd270b28d4ff69edd6d15a2a58f70c79a8cc55f09adbe924f551c7a66861653 (df10484e47efc809eb01907338d134f72fbe76bc) - db7c0769…4f7ba81 -
initial commit
c3ef0f0