huggingface / huggingface/cookbook

🧑‍🍳 New Cookbook Recipe: Add a recipe showcasing the usage of Pruna with Diffusers

Open
#313 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
2.7k
Forks
417
Avg merge
17h
Merged PRs (30d)
3

Description

[pruna](https://github.com/PrunaAI/pruna) is a library which contains a comprehensive suite of compression algorithms including [caching](https://docs.pruna.ai/en/stable/compression.html#cachers), [quantization](https://docs.pruna.ai/en/stable/compression.html#quantizers), [pruning](https://docs.pruna.ai/en/stable/compression.html#pruners), [distillation](https://docs.pruna.ai/en/stable/compression.html#distillers) and [compilation](https://docs.pruna.ai/en/stable/compression.html#compilers) techniques to make your models more efficient to use. I would be interested in contributing a recipe using pruna and the [diffusers](https://huggingface.co/docs/diffusers/index) library.

Based on a discussion with @davidberenstein1957, the recipe would feature a diffusers model quantized using the [smash](https://docs.pruna.ai/en/stable/docs_pruna/user_manual/configure.html) config, then the smashed model could be used for synthetic dataset creation, or we could evaluate the model against its unquantized version as well. Could you please let me know your thoughts and suggestions if the scope of the recipe is sufficient or any changes to make it more applied as well.

cc: @stevhliu

Contributor guide

No contributing guide indexed for this repository

Research direction

Review the linked Pruna compression and configuration documentation alongside the Diffusers documentation first, then clarify the recipe scope with maintainers. Done means a cookbook recipe demonstrates a Diffusers model quantized with the smash configuration and either uses it for synthetic dataset creation or evaluates it against the unquantized model.

Written by the indexing model from the issue text.

Assessment

Tech stack
jupyter-notebook
Domain
machine-learning
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.