Instructions to use lsmpp/kontextrefiner with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use lsmpp/kontextrefiner with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("lsmpp/kontextrefiner", 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
| name: π Translating a New Language? | |
| about: Start a new translation effort in your language | |
| title: '[<languageCode>] Translating docs to <languageName>' | |
| labels: WIP | |
| assignees: '' | |
| <!-- | |
| Note: Please search to see if an issue already exists for the language you are trying to translate. | |
| --> | |
| Hi! | |
| Let's bring the documentation to all the <languageName>-speaking community π. | |
| Who would want to translate? Please follow the π€ [TRANSLATING guide](https://github.com/huggingface/diffusers/blob/main/docs/TRANSLATING.md). Here is a list of the files ready for translation. Let us know in this issue if you'd like to translate any, and we'll add your name to the list. | |
| Some notes: | |
| * Please translate using an informal tone (imagine you are talking with a friend about Diffusers π€). | |
| * Please translate in a gender-neutral way. | |
| * Add your translations to the folder called `<languageCode>` inside the [source folder](https://github.com/huggingface/diffusers/tree/main/docs/source). | |
| * Register your translation in `<languageCode>/_toctree.yml`; please follow the order of the [English version](https://github.com/huggingface/diffusers/blob/main/docs/source/en/_toctree.yml). | |
| * Once you're finished, open a pull request and tag this issue by including #issue-number in the description, where issue-number is the number of this issue. Please ping @stevhliu for review. | |
| * π If you'd like others to help you with the translation, you can also post in the π€ [forums](https://discuss.huggingface.co/c/discussion-related-to-httpsgithubcomhuggingfacediffusers/63). | |
| Thank you so much for your help! π€ | |