Instructions to use BastinJerry/my-private-model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use BastinJerry/my-private-model with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("BastinJerry/my-private-model", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
Add library_name
Browse filesThis PR adds library_name to the model card, ensuring the "how to use" button appears on the top right.
README.md
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
| 3 |
pipeline_tag: text-to-video
|
|
|
|
| 4 |
tags:
|
| 5 |
- text-to-image
|
| 6 |
- image-to-video
|
|
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
| 3 |
pipeline_tag: text-to-video
|
| 4 |
+
library_name: diffusers
|
| 5 |
tags:
|
| 6 |
- text-to-image
|
| 7 |
- image-to-video
|