Downloads · 30 days
78
9% of all-time downloads
pruna-test/test-load-tiny-random-llama3-smashed-pro
test-load-tiny-random-llama3-smashed-pro is a text generation model from pruna-test. Use it when you need the model to write or continue text. It is set up for transformers.
This model was created using the pruna library. Pruna is a model optimization framework built for developers, enabling you to deliver more efficient models with minimal implementation overhead.
Downloads · 30 days
78
9% of all-time downloads
All-time downloads
888
Public
Parameters
4.1M
16.4 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors16.4 MB · 100%
From the Hugging Face model README
This model was created using the pruna library. Pruna is a model optimization framework built for developers, enabling you to deliver more efficient models with minimal implementation overhead.
First things first, you need to install the pruna library:
pip install src
You can use the transformers library to load the model but this might not include all optimizations by default.
To ensure that all optimizations are applied, use the pruna library to load the model using the following code:
from src import PrunaProModel
loaded_model = PrunaProModel.from_hub(
"PrunaAI/test-load-tiny-random-llama3-smashed-pro"
)
After loading the model, you can use the inference methods of the original model. Take a look at the documentation for more usage information.
The compression configuration of the model is stored in the smash_config.json file, which describes the optimization methods that were applied to the model.
{
"batcher": null,
"cacher": null,
"compiler": null,
"distiller": null,
"distributer": null,
"enhancer": null,
"factorizer": null,
"pruner": null,
"quantizer": null,
"recoverer": null,
"batch_size": 1,
"device": "cpu",
"device_map": null,
"save_fns": [],
"load_fns": [
"transformers"
],
"reapply_after_load": {
"factorizer": null,
"pruner": null,
"quantizer": null,
"distiller": null,
"cacher": null,
"recoverer": null,
"distributer": null,
"compiler": null,
"batcher": null,
"enhancer": null
}
}