Instructions to use sequelbox/Llama2-70B-SpellBlade with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use sequelbox/Llama2-70B-SpellBlade with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="sequelbox/Llama2-70B-SpellBlade")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("sequelbox/Llama2-70B-SpellBlade") model = AutoModelForCausalLM.from_pretrained("sequelbox/Llama2-70B-SpellBlade", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use sequelbox/Llama2-70B-SpellBlade with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "sequelbox/Llama2-70B-SpellBlade" # 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-SpellBlade", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/sequelbox/Llama2-70B-SpellBlade
- SGLang
How to use sequelbox/Llama2-70B-SpellBlade 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-SpellBlade" \ --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-SpellBlade", "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-SpellBlade" \ --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-SpellBlade", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use sequelbox/Llama2-70B-SpellBlade with Docker Model Runner:
docker model run hf.co/sequelbox/Llama2-70B-SpellBlade
Commit History
-
model card
Verified signatureace8ad2
-
Update README.md
258211a -
Delete .ipynb_checkpoints
8c699de
-
Upload folder using huggingface_hub (#1)
- 94af3249ee7d2f6b8be2c389a2a532e25abd3e942df5aa49194f06624d6ec7df (df15c8e7968db4a15de24735690f4a788b59ee08) - 62ec0adb2e6eb61b84bf5753b8d55937675316bafc0e2fdf25d11d6795dfa25e (82f99016ca11306c72cf7870c5b47973a7025f84) - 412d6cdaa4d4d74e8381bb114a41f7c6801177a2eb8de0cedd99f6dd1a6dbb6d (6c7dab0ec7726f28301dc8bbfa560ff13fdf7004) - 848585d11936c4ae112bf93bdb59e5c759aa2a948a29f5b348a21692483ded0d (31c80b91151cec920f1e1e84442511cc0471a8be) - b6261dfaf7c3a8aeabf16b4204d3fe0ab6a2973320e9698aa480f4c4fefc0bc8 (dc4a1e2d9e3026ae69a7331847617986f2b06484) - b1190a762b308fca274cd5b94f07c056b291b57eb45e64c23c9f3eb0cb2eccb2 (e0cd4ed8bb9b1de55367bacd186b440055e3bc9c) - 5c13dc3596290b66b847eb68af8eee320d5cdbedecd932ced9db3676f12116dd (7f5e4c9e784b130b829c0c3b06266221e6b80172) - 63dc6b21fa0cb02b631da79d5c11168ccc310d4a7d03a71af390090340092d3c (4b295ca4ce303037c72b736676ac2627ebc91595) - ebfd399034a4ddc90b959eb358013d1247f31ec237ee8b63fdf29bfaa0d440b5 (01ad1d15d43903ff0abd112ae43cec38e397663a) - eb0a6533…fbb33e5
-
initial commit
29a2213