Instructions to use csssss/com2ai-klein-4b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use csssss/com2ai-klein-4b with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline from diffusers.utils import load_image # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("csssss/com2ai-klein-4b", dtype=torch.bfloat16, device_map="cuda") prompt = "Turn this cat into a dog" input_image = load_image("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/cat.png") image = pipe(image=input_image, prompt=prompt).images[0] - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -15,7 +15,7 @@ license: apache-2.0
|
|
| 15 |
本仓库为**整合版权重仓库**,仅做文件归集、整合打包,无任何权重训练、微调、参数修改操作:
|
| 16 |
|
| 17 |
- **GGUF量化Transformer主干**:来源于 `unsloth/FLUX.2-klein-4B-GGUF`
|
| 18 |
-
采用 Unsloth Dynamic 2\.0 量化方案
|
| 19 |
|
| 20 |
- **VAE、模型配置、原生配套资源**:来源于官方基座 `black-forest-labs/FLUX.2-klein-4B`
|
| 21 |
|
|
@@ -31,7 +31,7 @@ license: apache-2.0
|
|
| 31 |
|
| 32 |
|
| 33 |
|
| 34 |
-
## 快速使用 / 推理示例
|
| 35 |
|
| 36 |
### 安装依赖
|
| 37 |
|
|
|
|
| 15 |
本仓库为**整合版权重仓库**,仅做文件归集、整合打包,无任何权重训练、微调、参数修改操作:
|
| 16 |
|
| 17 |
- **GGUF量化Transformer主干**:来源于 `unsloth/FLUX.2-klein-4B-GGUF`
|
| 18 |
+
采用 Unsloth Dynamic 2\.0 量化方案。
|
| 19 |
|
| 20 |
- **VAE、模型配置、原生配套资源**:来源于官方基座 `black-forest-labs/FLUX.2-klein-4B`
|
| 21 |
|
|
|
|
| 31 |
|
| 32 |
|
| 33 |
|
| 34 |
+
## 快速使用 / 推理示例
|
| 35 |
|
| 36 |
### 安装依赖
|
| 37 |
|