Add files using upload-large-folder tool
Browse files- README.md +10 -3
- config.json +1 -1
- generation_config.json +1 -1
- smash_config.json +3 -0
README.md
CHANGED
|
@@ -2,6 +2,7 @@
|
|
| 2 |
library_name: transformers
|
| 3 |
tags:
|
| 4 |
- pruna-ai
|
|
|
|
| 5 |
---
|
| 6 |
|
| 7 |
# Model Card for PrunaAI/test-save-tiny-random-llama4-smashed
|
|
@@ -23,12 +24,15 @@ To ensure that all optimizations are applied, use the pruna library to load the
|
|
| 23 |
```python
|
| 24 |
from pruna import PrunaModel
|
| 25 |
|
| 26 |
-
loaded_model = PrunaModel.
|
| 27 |
"PrunaAI/test-save-tiny-random-llama4-smashed"
|
| 28 |
)
|
|
|
|
| 29 |
```
|
| 30 |
|
| 31 |
-
|
|
|
|
|
|
|
| 32 |
|
| 33 |
## Smash Configuration
|
| 34 |
|
|
@@ -40,10 +44,12 @@ The compression configuration of the model is stored in the `smash_config.json`
|
|
| 40 |
"cacher": null,
|
| 41 |
"compiler": null,
|
| 42 |
"factorizer": null,
|
|
|
|
| 43 |
"pruner": null,
|
| 44 |
"quantizer": null,
|
| 45 |
"batch_size": 1,
|
| 46 |
"device": "cpu",
|
|
|
|
| 47 |
"save_fns": [],
|
| 48 |
"load_fns": [
|
| 49 |
"transformers"
|
|
@@ -52,6 +58,7 @@ The compression configuration of the model is stored in the `smash_config.json`
|
|
| 52 |
"factorizer": null,
|
| 53 |
"pruner": null,
|
| 54 |
"quantizer": null,
|
|
|
|
| 55 |
"cacher": null,
|
| 56 |
"compiler": null,
|
| 57 |
"batcher": null
|
|
@@ -65,4 +72,4 @@ The compression configuration of the model is stored in the `smash_config.json`
|
|
| 65 |
[](https://github.com/PrunaAI)
|
| 66 |
[](https://www.linkedin.com/company/93832878/admin/feed/posts/?feedType=following)
|
| 67 |
[](https://discord.com/invite/rskEr4BZJx)
|
| 68 |
-
[](https://www.reddit.com/r/PrunaAI/)
|
|
|
|
| 2 |
library_name: transformers
|
| 3 |
tags:
|
| 4 |
- pruna-ai
|
| 5 |
+
- safetensors
|
| 6 |
---
|
| 7 |
|
| 8 |
# Model Card for PrunaAI/test-save-tiny-random-llama4-smashed
|
|
|
|
| 24 |
```python
|
| 25 |
from pruna import PrunaModel
|
| 26 |
|
| 27 |
+
loaded_model = PrunaModel.from_pretrained(
|
| 28 |
"PrunaAI/test-save-tiny-random-llama4-smashed"
|
| 29 |
)
|
| 30 |
+
# we can then run inference using the methods supported by the base model
|
| 31 |
```
|
| 32 |
|
| 33 |
+
|
| 34 |
+
For inference, you can use the inference methods of the original model like shown in [the original model card](https://huggingface.co/hf-internal-testing/tiny-random-llama4?library=transformers).
|
| 35 |
+
Alternatively, you can visit [the Pruna documentation](https://docs.pruna.ai/en/stable/) for more information.
|
| 36 |
|
| 37 |
## Smash Configuration
|
| 38 |
|
|
|
|
| 44 |
"cacher": null,
|
| 45 |
"compiler": null,
|
| 46 |
"factorizer": null,
|
| 47 |
+
"kernel": null,
|
| 48 |
"pruner": null,
|
| 49 |
"quantizer": null,
|
| 50 |
"batch_size": 1,
|
| 51 |
"device": "cpu",
|
| 52 |
+
"device_map": null,
|
| 53 |
"save_fns": [],
|
| 54 |
"load_fns": [
|
| 55 |
"transformers"
|
|
|
|
| 58 |
"factorizer": null,
|
| 59 |
"pruner": null,
|
| 60 |
"quantizer": null,
|
| 61 |
+
"kernel": null,
|
| 62 |
"cacher": null,
|
| 63 |
"compiler": null,
|
| 64 |
"batcher": null
|
|
|
|
| 72 |
[](https://github.com/PrunaAI)
|
| 73 |
[](https://www.linkedin.com/company/93832878/admin/feed/posts/?feedType=following)
|
| 74 |
[](https://discord.com/invite/rskEr4BZJx)
|
| 75 |
+
[](https://www.reddit.com/r/PrunaAI/)
|
config.json
CHANGED
|
@@ -59,7 +59,7 @@
|
|
| 59 |
"router_jitter_noise": 0.0,
|
| 60 |
"tie_word_embeddings": false,
|
| 61 |
"torch_dtype": "float32",
|
| 62 |
-
"transformers_version": "4.52.
|
| 63 |
"use_cache": true,
|
| 64 |
"use_qk_norm": true,
|
| 65 |
"vocab_size": 202048
|
|
|
|
| 59 |
"router_jitter_noise": 0.0,
|
| 60 |
"tie_word_embeddings": false,
|
| 61 |
"torch_dtype": "float32",
|
| 62 |
+
"transformers_version": "4.52.3",
|
| 63 |
"use_cache": true,
|
| 64 |
"use_qk_norm": true,
|
| 65 |
"vocab_size": 202048
|
generation_config.json
CHANGED
|
@@ -7,5 +7,5 @@
|
|
| 7 |
200008
|
| 8 |
],
|
| 9 |
"pad_token_id": 200018,
|
| 10 |
-
"transformers_version": "4.52.
|
| 11 |
}
|
|
|
|
| 7 |
200008
|
| 8 |
],
|
| 9 |
"pad_token_id": 200018,
|
| 10 |
+
"transformers_version": "4.52.3"
|
| 11 |
}
|
smash_config.json
CHANGED
|
@@ -3,10 +3,12 @@
|
|
| 3 |
"cacher": null,
|
| 4 |
"compiler": null,
|
| 5 |
"factorizer": null,
|
|
|
|
| 6 |
"pruner": null,
|
| 7 |
"quantizer": null,
|
| 8 |
"batch_size": 1,
|
| 9 |
"device": "cpu",
|
|
|
|
| 10 |
"save_fns": [],
|
| 11 |
"load_fns": [
|
| 12 |
"transformers"
|
|
@@ -15,6 +17,7 @@
|
|
| 15 |
"factorizer": null,
|
| 16 |
"pruner": null,
|
| 17 |
"quantizer": null,
|
|
|
|
| 18 |
"cacher": null,
|
| 19 |
"compiler": null,
|
| 20 |
"batcher": null
|
|
|
|
| 3 |
"cacher": null,
|
| 4 |
"compiler": null,
|
| 5 |
"factorizer": null,
|
| 6 |
+
"kernel": null,
|
| 7 |
"pruner": null,
|
| 8 |
"quantizer": null,
|
| 9 |
"batch_size": 1,
|
| 10 |
"device": "cpu",
|
| 11 |
+
"device_map": null,
|
| 12 |
"save_fns": [],
|
| 13 |
"load_fns": [
|
| 14 |
"transformers"
|
|
|
|
| 17 |
"factorizer": null,
|
| 18 |
"pruner": null,
|
| 19 |
"quantizer": null,
|
| 20 |
+
"kernel": null,
|
| 21 |
"cacher": null,
|
| 22 |
"compiler": null,
|
| 23 |
"batcher": null
|