Instructions to use ntkuhn/lean-parrot with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ntkuhn/lean-parrot with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="ntkuhn/lean-parrot")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("ntkuhn/lean-parrot") model = AutoModelForCausalLM.from_pretrained("ntkuhn/lean-parrot") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use ntkuhn/lean-parrot with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ntkuhn/lean-parrot" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ntkuhn/lean-parrot", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/ntkuhn/lean-parrot
- SGLang
How to use ntkuhn/lean-parrot 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 "ntkuhn/lean-parrot" \ --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": "ntkuhn/lean-parrot", "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 "ntkuhn/lean-parrot" \ --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": "ntkuhn/lean-parrot", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use ntkuhn/lean-parrot with Docker Model Runner:
docker model run hf.co/ntkuhn/lean-parrot
step 15000
Browse files- log/debug_0.log +0 -0
- log/lean-parrot/1663345366.9087012/events.out.tfevents.1663345366.8602e95a620a.451.1 +3 -0
- log/lean-parrot/1663345554.7169552/events.out.tfevents.1663345554.8602e95a620a.690.1 +3 -0
- log/lean-parrot/1663345815.0216236/events.out.tfevents.1663345815.8602e95a620a.940.1 +3 -0
- log/lean-parrot/events.out.tfevents.1663345366.8602e95a620a.451.0 +3 -0
- log/lean-parrot/events.out.tfevents.1663345554.8602e95a620a.690.0 +3 -0
- log/lean-parrot/events.out.tfevents.1663345815.8602e95a620a.940.0 +3 -0
- step_15000/custom_checkpoint_0.pkl +3 -0
- step_15000/optimizer.bin +3 -0
- step_15000/pytorch_model.bin +3 -0
- step_15000/random_states_0.pkl +3 -0
- step_15000/scaler.pt +3 -0
log/debug_0.log
ADDED
|
File without changes
|
log/lean-parrot/1663345366.9087012/events.out.tfevents.1663345366.8602e95a620a.451.1
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2ef8f77ced2ee993ab02d4f1d786a5856568a502cb394d6727686058bea72bc8
|
| 3 |
+
size 1805
|
log/lean-parrot/1663345554.7169552/events.out.tfevents.1663345554.8602e95a620a.690.1
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:016b7d5308376ca664aa71b7864767f06600c06e2b8c923cf238d00bf8ade4e3
|
| 3 |
+
size 1805
|
log/lean-parrot/1663345815.0216236/events.out.tfevents.1663345815.8602e95a620a.940.1
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:20e0bdde07135d0276a2903b45808a2ad490d3ff918b8c1da0a35254262d8ebb
|
| 3 |
+
size 1743
|
log/lean-parrot/events.out.tfevents.1663345366.8602e95a620a.451.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b6f7c7895ba455d22c14dae201b51f5663e77ad4e018ce49041aabd5410ac12b
|
| 3 |
+
size 40
|
log/lean-parrot/events.out.tfevents.1663345554.8602e95a620a.690.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c89dde2893e6bbf5ca812cf1f52cb264e7e8f7a8ea3a94b39cfe8d3f67b7fb17
|
| 3 |
+
size 40
|
log/lean-parrot/events.out.tfevents.1663345815.8602e95a620a.940.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:04dd2067b884975da76e4c35443ccecbed22505f5652218c8353f6964e6f8906
|
| 3 |
+
size 5099248
|
step_15000/custom_checkpoint_0.pkl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2835ec0ea615d69cab2bc28d51b7bd470df4a04ac8b72e6324f4337c8ca40a7d
|
| 3 |
+
size 623
|
step_15000/optimizer.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c84ed97ab943a46458137fe5c5bcf3d40590506d5c50e19f60c9047a19205f53
|
| 3 |
+
size 939723977
|
step_15000/pytorch_model.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7bfa906866d71d88282974c3c53c91e5a1826b36cdf18c28f24d95cde552036e
|
| 3 |
+
size 482446121
|
step_15000/random_states_0.pkl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:abd87fe21071ae647be72194824880bb5a83db539e851c4a98529b1e4d57b293
|
| 3 |
+
size 14567
|
step_15000/scaler.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c4eb937eb503db8066497a7b27f6861444b66030da67b644a38525d9811fe6a5
|
| 3 |
+
size 559
|