Instructions to use pruna-test/test-save-tiny-random-llama4-smashed with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use pruna-test/test-save-tiny-random-llama4-smashed with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="pruna-test/test-save-tiny-random-llama4-smashed")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("pruna-test/test-save-tiny-random-llama4-smashed") model = AutoModelForCausalLM.from_pretrained("pruna-test/test-save-tiny-random-llama4-smashed", device_map="auto") - Pruna AI
How to use pruna-test/test-save-tiny-random-llama4-smashed with Pruna AI:
# Use a pipeline as a high-level helper from pruna import PrunaModel pipe = PrunaModel.from_pretrained("pruna-test/test-save-tiny-random-llama4-smashed")from pruna import PrunaModel # pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer tokenizer = AutoTokenizer.from_pretrained("pruna-test/test-save-tiny-random-llama4-smashed") model = PrunaModel.from_pretrained("pruna-test/test-save-tiny-random-llama4-smashed", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use pruna-test/test-save-tiny-random-llama4-smashed with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "pruna-test/test-save-tiny-random-llama4-smashed" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "pruna-test/test-save-tiny-random-llama4-smashed", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/pruna-test/test-save-tiny-random-llama4-smashed
- SGLang
How to use pruna-test/test-save-tiny-random-llama4-smashed 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 "pruna-test/test-save-tiny-random-llama4-smashed" \ --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": "pruna-test/test-save-tiny-random-llama4-smashed", "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 "pruna-test/test-save-tiny-random-llama4-smashed" \ --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": "pruna-test/test-save-tiny-random-llama4-smashed", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use pruna-test/test-save-tiny-random-llama4-smashed with Docker Model Runner:
docker model run hf.co/pruna-test/test-save-tiny-random-llama4-smashed
Add files using upload-large-folder tool
Browse files- README.md +1 -1
- config.json +5 -4
- generation_config.json +1 -1
- model.safetensors +2 -2
README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
---
|
| 2 |
library_name: transformers
|
| 3 |
tags:
|
| 4 |
-
- safetensors
|
| 5 |
- pruna-ai
|
|
|
|
| 6 |
---
|
| 7 |
|
| 8 |
# Model Card for pruna-test/test-save-tiny-random-llama4-smashed
|
|
|
|
| 1 |
---
|
| 2 |
library_name: transformers
|
| 3 |
tags:
|
|
|
|
| 4 |
- pruna-ai
|
| 5 |
+
- safetensors
|
| 6 |
---
|
| 7 |
|
| 8 |
# Model Card for pruna-test/test-save-tiny-random-llama4-smashed
|
config.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
| 9 |
"attn_scale": 0.1,
|
| 10 |
"attn_temperature_tuning": true,
|
| 11 |
"bos_token_id": 200000,
|
| 12 |
-
"dtype": "
|
| 13 |
"eos_token_id": [
|
| 14 |
200001,
|
| 15 |
200007,
|
|
@@ -40,6 +40,7 @@
|
|
| 40 |
3,
|
| 41 |
4
|
| 42 |
],
|
|
|
|
| 43 |
"no_rope_layers": [
|
| 44 |
1,
|
| 45 |
1,
|
|
@@ -55,18 +56,18 @@
|
|
| 55 |
"output_router_logits": false,
|
| 56 |
"pad_token_id": 200018,
|
| 57 |
"rms_norm_eps": 1e-05,
|
| 58 |
-
"
|
| 59 |
"factor": 8.0,
|
| 60 |
"high_freq_factor": 4.0,
|
| 61 |
"low_freq_factor": 1.0,
|
| 62 |
"original_max_position_embeddings": 8192,
|
|
|
|
| 63 |
"rope_type": "llama3"
|
| 64 |
},
|
| 65 |
-
"rope_theta": 500000.0,
|
| 66 |
"router_aux_loss_coef": 0.001,
|
| 67 |
"router_jitter_noise": 0.0,
|
| 68 |
"tie_word_embeddings": false,
|
| 69 |
-
"transformers_version": "
|
| 70 |
"use_cache": true,
|
| 71 |
"use_qk_norm": true,
|
| 72 |
"vocab_size": 202048
|
|
|
|
| 9 |
"attn_scale": 0.1,
|
| 10 |
"attn_temperature_tuning": true,
|
| 11 |
"bos_token_id": 200000,
|
| 12 |
+
"dtype": "bfloat16",
|
| 13 |
"eos_token_id": [
|
| 14 |
200001,
|
| 15 |
200007,
|
|
|
|
| 40 |
3,
|
| 41 |
4
|
| 42 |
],
|
| 43 |
+
"no_rope_layer_interval": 4,
|
| 44 |
"no_rope_layers": [
|
| 45 |
1,
|
| 46 |
1,
|
|
|
|
| 56 |
"output_router_logits": false,
|
| 57 |
"pad_token_id": 200018,
|
| 58 |
"rms_norm_eps": 1e-05,
|
| 59 |
+
"rope_parameters": {
|
| 60 |
"factor": 8.0,
|
| 61 |
"high_freq_factor": 4.0,
|
| 62 |
"low_freq_factor": 1.0,
|
| 63 |
"original_max_position_embeddings": 8192,
|
| 64 |
+
"rope_theta": 500000.0,
|
| 65 |
"rope_type": "llama3"
|
| 66 |
},
|
|
|
|
| 67 |
"router_aux_loss_coef": 0.001,
|
| 68 |
"router_jitter_noise": 0.0,
|
| 69 |
"tie_word_embeddings": false,
|
| 70 |
+
"transformers_version": "5.12.0",
|
| 71 |
"use_cache": true,
|
| 72 |
"use_qk_norm": true,
|
| 73 |
"vocab_size": 202048
|
generation_config.json
CHANGED
|
@@ -7,5 +7,5 @@
|
|
| 7 |
200008
|
| 8 |
],
|
| 9 |
"pad_token_id": 200018,
|
| 10 |
-
"transformers_version": "
|
| 11 |
}
|
|
|
|
| 7 |
200008
|
| 8 |
],
|
| 9 |
"pad_token_id": 200018,
|
| 10 |
+
"transformers_version": "5.12.0"
|
| 11 |
}
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ae0393e56b63c5d4d4a10aa6ffe12a6e348b4eefac322ee77ea7f974affc7138
|
| 3 |
+
size 13046840
|