Instructions to use UmeAiRT/ComfyUI-Auto-Installer-Assets with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use UmeAiRT/ComfyUI-Auto-Installer-Assets with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("UmeAiRT/ComfyUI-Auto-Installer-Assets", 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
Sync upload configuration_florence2.py
Browse files
models/LLM/Florence-2-base-PromptGen-v2.0/configuration_florence2.py
CHANGED
|
@@ -262,7 +262,7 @@ class Florence2LanguageConfig(PretrainedConfig):
|
|
| 262 |
)
|
| 263 |
|
| 264 |
# ensure backward compatibility for BART CNN models
|
| 265 |
-
if self
|
| 266 |
self.forced_bos_token_id = self.bos_token_id
|
| 267 |
warnings.warn(
|
| 268 |
f"Please make sure the config includes `forced_bos_token_id={self.bos_token_id}` in future versions. "
|
|
|
|
| 262 |
)
|
| 263 |
|
| 264 |
# ensure backward compatibility for BART CNN models
|
| 265 |
+
if getattr(self, "forced_bos_token_id", None) is None and kwargs.get("force_bos_token_to_be_generated", False):
|
| 266 |
self.forced_bos_token_id = self.bos_token_id
|
| 267 |
warnings.warn(
|
| 268 |
f"Please make sure the config includes `forced_bos_token_id={self.bos_token_id}` in future versions. "
|