Instructions to use akhauriyash/Llama-3.2-1B-Butler with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use akhauriyash/Llama-3.2-1B-Butler with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="akhauriyash/Llama-3.2-1B-Butler", trust_remote_code=True)# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("akhauriyash/Llama-3.2-1B-Butler", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use akhauriyash/Llama-3.2-1B-Butler with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "akhauriyash/Llama-3.2-1B-Butler" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "akhauriyash/Llama-3.2-1B-Butler", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/akhauriyash/Llama-3.2-1B-Butler
- SGLang
How to use akhauriyash/Llama-3.2-1B-Butler 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 "akhauriyash/Llama-3.2-1B-Butler" \ --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": "akhauriyash/Llama-3.2-1B-Butler", "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 "akhauriyash/Llama-3.2-1B-Butler" \ --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": "akhauriyash/Llama-3.2-1B-Butler", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use akhauriyash/Llama-3.2-1B-Butler with Docker Model Runner:
docker model run hf.co/akhauriyash/Llama-3.2-1B-Butler
Update README.md
Browse files
README.md
CHANGED
|
@@ -10,13 +10,27 @@ base_model:
|
|
| 10 |
<!-- markdownlint-disable no-duplicate-header -->
|
| 11 |
|
| 12 |
|
|
|
|
| 13 |
<div align="center">
|
| 14 |
<img src="https://github.com/abdelfattah-lab/TokenButler/blob/main/figs/tokenbutlerlogo.png?raw=true" width="50%" alt="TokenButler" />
|
| 15 |
</div>
|
| 16 |
<hr>
|
| 17 |
-
<
|
| 18 |
-
<
|
| 19 |
-
</
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
|
| 21 |
|
| 22 |
|
|
|
|
| 10 |
<!-- markdownlint-disable no-duplicate-header -->
|
| 11 |
|
| 12 |
|
| 13 |
+
|
| 14 |
<div align="center">
|
| 15 |
<img src="https://github.com/abdelfattah-lab/TokenButler/blob/main/figs/tokenbutlerlogo.png?raw=true" width="50%" alt="TokenButler" />
|
| 16 |
</div>
|
| 17 |
<hr>
|
| 18 |
+
<div align="center" style="line-height: 1;">
|
| 19 |
+
<!-- Paper Badge -->
|
| 20 |
+
<a href="https://github.com/abdelfattah-lab/TokenButler/blob/main/TokenButler_Draft.pdf" target="_blank" style="margin: 2px;">
|
| 21 |
+
<img alt="Paper"
|
| 22 |
+
src="https://img.shields.io/badge/Paper-View-orange?logo=readthedocs&logoColor=white"
|
| 23 |
+
style="display: inline-block; vertical-align: middle;"/>
|
| 24 |
+
</a>
|
| 25 |
+
<!-- GitHub Badge -->
|
| 26 |
+
<a href="https://github.com/abdelfattah-lab/TokenButler" target="_blank" style="margin: 2px;">
|
| 27 |
+
<img alt="GitHub"
|
| 28 |
+
src="https://img.shields.io/badge/GitHub-Repo-black?logo=github&logoColor=white"
|
| 29 |
+
style="display: inline-block; vertical-align: middle;"/>
|
| 30 |
+
</a>
|
| 31 |
+
</div>
|
| 32 |
+
|
| 33 |
+
<br>
|
| 34 |
|
| 35 |
|
| 36 |
|