Instructions to use dfurman/LLaMA-13B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use dfurman/LLaMA-13B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="dfurman/LLaMA-13B")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("dfurman/LLaMA-13B") model = AutoModelForCausalLM.from_pretrained("dfurman/LLaMA-13B") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use dfurman/LLaMA-13B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "dfurman/LLaMA-13B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "dfurman/LLaMA-13B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/dfurman/LLaMA-13B
- SGLang
How to use dfurman/LLaMA-13B 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 "dfurman/LLaMA-13B" \ --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": "dfurman/LLaMA-13B", "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 "dfurman/LLaMA-13B" \ --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": "dfurman/LLaMA-13B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use dfurman/LLaMA-13B with Docker Model Runner:
docker model run hf.co/dfurman/LLaMA-13B
Update README.md
Browse files
README.md
CHANGED
|
@@ -5,7 +5,7 @@ license: other
|
|
| 5 |
|
| 6 |
# 🦙 LLaMA-13B
|
| 7 |
|
| 8 |
-
LLaMA-13B is a base model for text generation with
|
| 9 |
|
| 10 |
This model repo was converted to work with the transformers package. It is under a bespoke **non-commercial** license, please see the [LICENSE](https://huggingface.co/dfurman/llama-13b/blob/main/LICENSE) file for more details.
|
| 11 |
|
|
|
|
| 5 |
|
| 6 |
# 🦙 LLaMA-13B
|
| 7 |
|
| 8 |
+
LLaMA-13B is a base model for text generation with 13B parameters and a 1T token training corpus. It was built and released by the FAIR team at Meta AI alongside the paper "[LLaMA: Open and Efficient Foundation Language Models](https://arxiv.org/abs/2302.13971)".
|
| 9 |
|
| 10 |
This model repo was converted to work with the transformers package. It is under a bespoke **non-commercial** license, please see the [LICENSE](https://huggingface.co/dfurman/llama-13b/blob/main/LICENSE) file for more details.
|
| 11 |
|