Add files using upload-large-folder tool
Browse files- README.md +4 -4
- config.json +8 -2
- generation_config.json +1 -1
README.md
CHANGED
|
@@ -5,7 +5,7 @@ tags:
|
|
| 5 |
- safetensors
|
| 6 |
---
|
| 7 |
|
| 8 |
-
# Model Card for
|
| 9 |
|
| 10 |
This model was created using the [pruna](https://github.com/PrunaAI/pruna) library. Pruna is a model optimization framework built for developers, enabling you to deliver more efficient models with minimal implementation overhead.
|
| 11 |
|
|
@@ -17,7 +17,7 @@ First things first, you need to install the pruna library:
|
|
| 17 |
pip install pruna
|
| 18 |
```
|
| 19 |
|
| 20 |
-
You can [use the transformers library to load the model](https://huggingface.co/
|
| 21 |
|
| 22 |
To ensure that all optimizations are applied, use the pruna library to load the model using the following code:
|
| 23 |
|
|
@@ -25,7 +25,7 @@ To ensure that all optimizations are applied, use the pruna library to load the
|
|
| 25 |
from pruna import PrunaModel
|
| 26 |
|
| 27 |
loaded_model = PrunaModel.from_pretrained(
|
| 28 |
-
"
|
| 29 |
)
|
| 30 |
# we can then run inference using the methods supported by the base model
|
| 31 |
```
|
|
@@ -71,5 +71,5 @@ The compression configuration of the model is stored in the `smash_config.json`
|
|
| 71 |
[](https://twitter.com/PrunaAI)
|
| 72 |
[](https://github.com/PrunaAI)
|
| 73 |
[](https://www.linkedin.com/company/93832878/admin/feed/posts/?feedType=following)
|
| 74 |
-
[](https://discord.
|
| 75 |
[](https://www.reddit.com/r/PrunaAI/)
|
|
|
|
| 5 |
- safetensors
|
| 6 |
---
|
| 7 |
|
| 8 |
+
# Model Card for pruna-test/test-save-tiny-random-llama4-smashed
|
| 9 |
|
| 10 |
This model was created using the [pruna](https://github.com/PrunaAI/pruna) library. Pruna is a model optimization framework built for developers, enabling you to deliver more efficient models with minimal implementation overhead.
|
| 11 |
|
|
|
|
| 17 |
pip install pruna
|
| 18 |
```
|
| 19 |
|
| 20 |
+
You can [use the transformers library to load the model](https://huggingface.co/pruna-test/test-save-tiny-random-llama4-smashed?library=transformers) but this might not include all optimizations by default.
|
| 21 |
|
| 22 |
To ensure that all optimizations are applied, use the pruna library to load the model using the following code:
|
| 23 |
|
|
|
|
| 25 |
from pruna import PrunaModel
|
| 26 |
|
| 27 |
loaded_model = PrunaModel.from_pretrained(
|
| 28 |
+
"pruna-test/test-save-tiny-random-llama4-smashed"
|
| 29 |
)
|
| 30 |
# we can then run inference using the methods supported by the base model
|
| 31 |
```
|
|
|
|
| 71 |
[](https://twitter.com/PrunaAI)
|
| 72 |
[](https://github.com/PrunaAI)
|
| 73 |
[](https://www.linkedin.com/company/93832878/admin/feed/posts/?feedType=following)
|
| 74 |
+
[](https://discord.gg/JFQmtFKCjd)
|
| 75 |
[](https://www.reddit.com/r/PrunaAI/)
|
config.json
CHANGED
|
@@ -8,7 +8,6 @@
|
|
| 8 |
"attn_scale": 0.1,
|
| 9 |
"attn_temperature_tuning": 4,
|
| 10 |
"bos_token_id": 200000,
|
| 11 |
-
"cache_implementation": "hybrid",
|
| 12 |
"eos_token_id": [
|
| 13 |
200001,
|
| 14 |
200007,
|
|
@@ -23,6 +22,13 @@
|
|
| 23 |
"interleave_moe_layer_step": 1,
|
| 24 |
"intermediate_size": 32,
|
| 25 |
"intermediate_size_mlp": 64,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
"max_position_embeddings": 10485760,
|
| 27 |
"model_type": "llama4_text",
|
| 28 |
"moe_layers": [
|
|
@@ -59,7 +65,7 @@
|
|
| 59 |
"router_jitter_noise": 0.0,
|
| 60 |
"tie_word_embeddings": false,
|
| 61 |
"torch_dtype": "float32",
|
| 62 |
-
"transformers_version": "4.
|
| 63 |
"use_cache": true,
|
| 64 |
"use_qk_norm": true,
|
| 65 |
"vocab_size": 202048
|
|
|
|
| 8 |
"attn_scale": 0.1,
|
| 9 |
"attn_temperature_tuning": 4,
|
| 10 |
"bos_token_id": 200000,
|
|
|
|
| 11 |
"eos_token_id": [
|
| 12 |
200001,
|
| 13 |
200007,
|
|
|
|
| 22 |
"interleave_moe_layer_step": 1,
|
| 23 |
"intermediate_size": 32,
|
| 24 |
"intermediate_size_mlp": 64,
|
| 25 |
+
"layer_types": [
|
| 26 |
+
"chunked_attention",
|
| 27 |
+
"chunked_attention",
|
| 28 |
+
"chunked_attention",
|
| 29 |
+
"full_attention",
|
| 30 |
+
"chunked_attention"
|
| 31 |
+
],
|
| 32 |
"max_position_embeddings": 10485760,
|
| 33 |
"model_type": "llama4_text",
|
| 34 |
"moe_layers": [
|
|
|
|
| 65 |
"router_jitter_noise": 0.0,
|
| 66 |
"tie_word_embeddings": false,
|
| 67 |
"torch_dtype": "float32",
|
| 68 |
+
"transformers_version": "4.53.2",
|
| 69 |
"use_cache": true,
|
| 70 |
"use_qk_norm": true,
|
| 71 |
"vocab_size": 202048
|
generation_config.json
CHANGED
|
@@ -7,5 +7,5 @@
|
|
| 7 |
200008
|
| 8 |
],
|
| 9 |
"pad_token_id": 200018,
|
| 10 |
-
"transformers_version": "4.
|
| 11 |
}
|
|
|
|
| 7 |
200008
|
| 8 |
],
|
| 9 |
"pad_token_id": 200018,
|
| 10 |
+
"transformers_version": "4.53.2"
|
| 11 |
}
|