mirror of
https://github.com/huggingface/candle.git
synced 2025-06-16 02:38:10 +00:00
Stable diffusion: retrieve the model files from the HF hub. (#414)
* Retrieve the model files from the HF hub in the stable diffusion example. * Add to the readme.
This commit is contained in:
@ -26,6 +26,8 @@ Check out our [examples](./candle-examples/examples/):
|
||||
- [Bert](./candle-examples/examples/bert/): useful for sentence embeddings.
|
||||
- [StarCoder](./candle-examples/examples/bigcode/): LLM specialized to code
|
||||
generation.
|
||||
- [Stable Diffusion](./candle-examples/examples/stable-diffusion/): text to
|
||||
image generative model, only cpu support at the moment and on the slow side.
|
||||
|
||||
Run them using the following commands:
|
||||
```
|
||||
@ -34,6 +36,7 @@ cargo run --example llama --release
|
||||
cargo run --example falcon --release
|
||||
cargo run --example bert --release
|
||||
cargo run --example bigcode --release
|
||||
cargo run --example stable-diffusion --release -- --prompt "a rusty robot holding a fire torch"
|
||||
```
|
||||
|
||||
In order to use **CUDA** add `--features cuda` to the example command line.
|
||||
|
Reference in New Issue
Block a user