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")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("dfurman/LLaMA-13B") model = AutoModelForCausalLM.from_pretrained("dfurman/LLaMA-13B", device_map="auto") - 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
Commit History
-
Upload llama.png
9a7115f -
Create assets/.gitignore
1ac6d61 -
Update README.md
2c3fca0
-
Update README.md
ef98078 -
Update README.md
271b00c -
Delete pytorch_model-00002-of-00002.bin
abdcfef -
Delete pytorch_model-00001-of-00002.bin
76ea59e -
Upload LlamaForCausalLM
dfea43c -
Update README.md
385b610 -
Update README.md
08dd113 -
Update README.md
3d9dc92 -
Upload README.md
f86318d -
Update README.md
1611920 -
Upload LlamaForCausalLM
26c09f9 -
Upload tokenizer
92fa7f3 -
Upload tokenizer
0dfdb88
-
Upload LlamaForCausalLM
b09ee4f -
Upload LlamaForCausalLM
5a38246 -
Upload LlamaForCausalLM
339a1fe -
Update README.md
613d0cb -
Upload 2 files
e6b3682 -
initial commit
6dc8d69