Instructions to use JSYuuu/ThinkGen with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use JSYuuu/ThinkGen with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("JSYuuu/ThinkGen", 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
jiaosiyu.111 commited on
Commit ·
633ace1
1
Parent(s): fd45889
init commit
Browse files
README.md
CHANGED
|
@@ -46,7 +46,7 @@ pip install --no-cache-dir flash-attn==2.7.4.post1 --no-build-isolation -i http
|
|
| 46 |
from ThinkGen.model import ThinkGen_Chat
|
| 47 |
import os
|
| 48 |
|
| 49 |
-
model_path = "
|
| 50 |
|
| 51 |
chat_model = ThinkGen_Chat(
|
| 52 |
model_path=model_path,
|
|
|
|
| 46 |
from ThinkGen.model import ThinkGen_Chat
|
| 47 |
import os
|
| 48 |
|
| 49 |
+
model_path = "JSYuuu/ThinkGen"
|
| 50 |
|
| 51 |
chat_model = ThinkGen_Chat(
|
| 52 |
model_path=model_path,
|