Instructions to use naapeli/chess-puzzle-generator with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use naapeli/chess-puzzle-generator with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("naapeli/chess-puzzle-generator", dtype=torch.bfloat16, device_map="cuda") prompt = "My name is Julien and I like to" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
| { | |
| "_class_name": [ | |
| "pipeline", | |
| "ChessPuzzlePipeline" | |
| ], | |
| "_diffusers_version": "0.39.0", | |
| "model": [ | |
| "model", | |
| "MaskedDiffusion" | |
| ] | |
| } |