Instructions to use sambanovasystems/LLaMA-30b-toolbench with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use sambanovasystems/LLaMA-30b-toolbench with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="sambanovasystems/LLaMA-30b-toolbench")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("sambanovasystems/LLaMA-30b-toolbench") model = AutoModelForCausalLM.from_pretrained("sambanovasystems/LLaMA-30b-toolbench") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use sambanovasystems/LLaMA-30b-toolbench with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "sambanovasystems/LLaMA-30b-toolbench" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "sambanovasystems/LLaMA-30b-toolbench", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/sambanovasystems/LLaMA-30b-toolbench
- SGLang
How to use sambanovasystems/LLaMA-30b-toolbench 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 "sambanovasystems/LLaMA-30b-toolbench" \ --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": "sambanovasystems/LLaMA-30b-toolbench", "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 "sambanovasystems/LLaMA-30b-toolbench" \ --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": "sambanovasystems/LLaMA-30b-toolbench", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use sambanovasystems/LLaMA-30b-toolbench with Docker Model Runner:
docker model run hf.co/sambanovasystems/LLaMA-30b-toolbench
[WIP] Upload folder using huggingface_hub (multi-commit 99ef1497b432d7b5f16c8d86cdd517ec698ab93006de5323ca370bc99d210926)
#1
by bol20162021 - opened
Upload folder using huggingface_hub
Multi commit ID: 99ef1497b432d7b5f16c8d86cdd517ec698ab93006de5323ca370bc99d210926
Scheduled commits:
- Upload 1 file(s) totalling 9.9G (c1aa5e558b2661504ccbf83398a6bfc09c9a6b2e93d6c4628885d9adb1abf9b0)
- Upload 1 file(s) totalling 9.7G (c2f9dfb4298681d31a12b0a803b210f3d35cfc6959f6af1e907efbb3a5343a9d)
- Upload 1 file(s) totalling 9.7G (96c9f4f9eb91892142683f467e256c0abfcc5f22c11d0ac69e4050dbf40ebefc)
- Upload 1 file(s) totalling 10.0G (f34abfa4176269e3169fe4ce67d2a7bfb998779517b124adccc08928b37bf726)
- Upload 1 file(s) totalling 9.7G (7415d9e41bc5468cb4390dbccce50b540ae3ea7309fed575b7b84b8a234eca6b)
- Upload 1 file(s) totalling 9.9G (ddf8697d26b854ab2f1a4537a3ade65ee774b192ad1b124ef3e7bfd15dd74ce3)
- Upload 1 file(s) totalling 9.9G (4e9c129425bafcf80b1cf6495182f51bc8b5889cc9baa9cdb10707d51eb40e4b)
- Upload 1 file(s) totalling 9.7G (fb001862f59a56063b2db2995eaf3cef78c644b4cb74c9d1a473f43096c8ea23)
- Upload 1 file(s) totalling 10.0G (25b24f35d6c0f8064af558dd66d1c9eb205de1eca75b45fcf861ac81d1f6c604)
- Upload 1 file(s) totalling 9.7G (daa927a3a13f76a47893b9cd58b83aa903ab327ecf0d09bc80e3da90f3c7d0f0)
- Upload 1 file(s) totalling 9.9G (7a52e6a6bac3ecbad97a60723cd271fff787b61509dedf5c808ddb707c21deee)
- Upload 1 file(s) totalling 9.9G (3ecf9470cc96ce7d306b80b6d5118f048161979fa35f612037525e5e7839e550)
- Upload 1 file(s) totalling 9.7G (bba6680665283c8756679f559c4fd82666572165dfcc37babb28e24ed23869aa)
- Upload 1 file(s) totalling 2.3G (16cc9aa8fe537208a3a14f16c49037e4256cd1c384d3a5d075c4a2e78f6699b9)
- Upload 7 file(s) totalling 2.4M (c13225add09d2ae273b8284c63a7f3994cd1fbb5209d6b0691a24b0e8e05d25d)
This is a PR opened using the huggingface_hub library in the context of a multi-commit. PR can be commented as a usual PR. However, please be aware that manually updating the PR description, changing the PR status, or pushing new commits, is not recommended as it might corrupt the commit process. Learn more about multi-commits in this guide.