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")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("sambanovasystems/LLaMA-30b-toolbench") model = AutoModelForCausalLM.from_pretrained("sambanovasystems/LLaMA-30b-toolbench", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- 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
Commit History
-
Upload folder using huggingface_hub (#2)
- c1aa5e558b2661504ccbf83398a6bfc09c9a6b2e93d6c4628885d9adb1abf9b0 (6f77566afb3bd84939420a6a72af3887193323db) - c2f9dfb4298681d31a12b0a803b210f3d35cfc6959f6af1e907efbb3a5343a9d (6b634bcbafecb156e64b45482ae2c73366f428d2) - 96c9f4f9eb91892142683f467e256c0abfcc5f22c11d0ac69e4050dbf40ebefc (9d05206203101d6c560d0ddefd7b1c489f68c50b) - f34abfa4176269e3169fe4ce67d2a7bfb998779517b124adccc08928b37bf726 (f7ad8eebef4c0fe20218c5745e045618b0481f02) - 7415d9e41bc5468cb4390dbccce50b540ae3ea7309fed575b7b84b8a234eca6b (805f4d75076b58c5fc769d2d7546755cd1f088bc) - ddf8697d26b854ab2f1a4537a3ade65ee774b192ad1b124ef3e7bfd15dd74ce3 (e4f486f8fc116f7f7061dc15b71d7105f9698c28) - 4e9c129425bafcf80b1cf6495182f51bc8b5889cc9baa9cdb10707d51eb40e4b (0f7648d90696cf89611dea179e28aace478b8748) - fb001862f59a56063b2db2995eaf3cef78c644b4cb74c9d1a473f43096c8ea23 (797069a120e88cbfaa475ba582a98d97684e8e9e) - 25b24f35d6c0f8064af558dd66d1c9eb205de1eca75b45fcf861ac81d1f6c604 (197060f90c15deb53998369803212e7265772b73) - daa927a3…3b0ac8e