Views
No views yet

model/smash_config.json and are obtained after a hardware warmup. The smashed model is directly compared to the original base model. Efficiency results may vary in other settings (e.g. other hardware, image size, batch size, ...). We recommend to directly run them in the use-case conditions to know if the smashed model can benefit you.nvcc --version and install with conda install nvidia/label/cuda-12.1.0::cuda.pruna-engine available here on Pypi. It might take up to 15 minutes to install.
pip install pruna-engine[gpu]==0.6.0 --extra-index-url https://pypi.nvidia.com --extra-index-url https://pypi.ngc.nvidia.com --extra-index-url https://prunaai.pythonanywhere.com/1mkdir runwayml-stable-diffusion-v1-5-turbo-tiny-green-smashed
2huggingface-cli download PrunaAI/runwayml-stable-diffusion-v1-5-turbo-tiny-green-smashed --local-dir runwayml-stable-diffusion-v1-5-turbo-tiny-green-smashed --local-dir-use-symlinks False1import subprocess
2repo_name = "runwayml-stable-diffusion-v1-5-turbo-tiny-green-smashed"
3subprocess.run(["mkdir", repo_name])
4subprocess.run(["huggingface-cli", "download", 'PrunaAI/'+ repo_name, "--local-dir", repo_name, "--local-dir-use-symlinks", "False"])1from pruna_engine.PrunaModel import PrunaModel
2
3model_path = "runwayml-stable-diffusion-v1-5-turbo-tiny-green-smashed/model" # Specify the downloaded model path.
4smashed_model = PrunaModel.load_model(model_path) # Load the model.
5smashed_model(prompt='Beautiful fruits in trees', height=512, width=512)[0][0] # Run the model where x is the expected input of.config.json.