Instructions to use Lorenzob/astra with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Lorenzob/astra with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("Lorenzob/astra", torch_dtype=torch.bfloat16, device_map="cuda") prompt = "My name is Julien and I like to" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
| build: components index.js | |
| @component build | |
| components: | |
| @Component install | |
| clean: | |
| rm -fr build components template.js | |
| test: | |
| @node_modules/.bin/mocha \ | |
| --require should \ | |
| --reporter spec | |
| .PHONY: clean test | |