Instructions to use sequelbox/Llama2-13B-DaringFortitude with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use sequelbox/Llama2-13B-DaringFortitude with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="sequelbox/Llama2-13B-DaringFortitude")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("sequelbox/Llama2-13B-DaringFortitude") model = AutoModelForCausalLM.from_pretrained("sequelbox/Llama2-13B-DaringFortitude", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use sequelbox/Llama2-13B-DaringFortitude with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "sequelbox/Llama2-13B-DaringFortitude" # 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-13B-DaringFortitude", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/sequelbox/Llama2-13B-DaringFortitude
- SGLang
How to use sequelbox/Llama2-13B-DaringFortitude 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-13B-DaringFortitude" \ --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-13B-DaringFortitude", "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-13B-DaringFortitude" \ --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-13B-DaringFortitude", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use sequelbox/Llama2-13B-DaringFortitude with Docker Model Runner:
docker model run hf.co/sequelbox/Llama2-13B-DaringFortitude
Commit History
-
tokenizer
c2dc343
-
Upload folder using huggingface_hub (#1)
- e07b4df76e14c94b856100d07799d68191656ca28a6eaae990e9a8f94a560431 (f5bcf2dd3fc48208d00cdc7b57acd1ce00273639) - df65ec06efd22fc36691d5401cbdca385a8e57cac1750395c0ae42a3259ac310 (6b6a0d4e94344905bb864ad9e808a856cabe4783) - 7486c85c00c3677b79bcd4ce54d439b92b6668198cd76b21e24a78d07bd4bc83 (6a0e8f414688e04ad057cff4a80eb6d8c07e1cdb) - e9a5771ec38ca14c4d61e16ceb7c2e70b9cd732d473705b49434dd234f9d5e53 (c8013489b86fae07965744c9919b54de3a39535b) - da17e2bd813fefd7359618ee54db9d8664b8edb1c9298e53a52944592618b58c (013a3cf264b8f4cb85a62e1f25b1d20cab8e352d) - 156662ab8ccd8f71ddf726638b7baab4bc79c16580dfc1f3921aed2227a9808a (5c055eae8de8317ab47d1b4e99a83b301361d409) - 3cb7bb0b0641fbe4ae74ae365951705a0e33e9e53dcde8752553b2ef53a77eb4 (ea4f277beb0837d59b3c3e14739898276e0daa41)ae5e117