
import torch

from diffusers import StableDiffusionPipeline


__lowerCamelCase							=       """path-to-your-trained-model"""
__lowerCamelCase							=       StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.floataa).to("""cuda""")

__lowerCamelCase							=       """A photo of sks dog in a bucket"""
__lowerCamelCase							=       pipe(prompt, num_inference_steps=50, guidance_scale=7.5).images[0]

image.save("""dog-bucket.png""")







from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_tokenizers_available, is_torch_available


__lowerCamelCase							=       {
    """configuration_biogpt""": ["""BIOGPT_PRETRAINED_CONFIG_ARCHIVE_MAP""", """BioGptConfig"""],
    """tokenization_biogpt""": ["""BioGptTokenizer"""],
}

try:
   if not is_torch_available():
      raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
   pass
else:
   __lowerCamelCase							=       [
       """BIOGPT_PRETRAINED_MODEL_ARCHIVE_LIST""",
       """BioGptForCausalLM""",
       """BioGptForTokenClassification""",
       """BioGptForSequenceClassification""",
       """BioGptModel""",
       """BioGptPreTrainedModel""",
   ]


if TYPE_CHECKING:
   from .configuration_biogpt import BIOGPT_PRETRAINED_CONFIG_ARCHIVE_MAP, BioGptConfig
   from .tokenization_biogpt import BioGptTokenizer

   try:
      if not is_torch_available():
         raise OptionalDependencyNotAvailable()
   except OptionalDependencyNotAvailable:
      pass
   else:
      from .modeling_biogpt import (
          BIOGPT_PRETRAINED_MODEL_ARCHIVE_LIST,
          BioGptForCausalLM,
          BioGptForSequenceClassification,
          BioGptForTokenClassification,
          BioGptModel,
          BioGptPreTrainedModel,
      )


else:
   import sys

   __lowerCamelCase							=       _LazyModule(__name__, globals()["""__file__"""], _import_structure, module_spec=__spec__)





