Instructions to use internlm/EndoCoT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use internlm/EndoCoT 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("internlm/EndoCoT", 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
Download fig/case.jpg from internlm/EndoCoT: direct link, hf CLI and curl.
- Browser
- Download file 4.05 MB
-
https://huggingface.co/internlm/EndoCoT/resolve/main/fig/case.jpg
- Command line
-
hf download hf://internlm/EndoCoT/fig/case.jpg
-
curl -L -o case.jpg https://huggingface.co/internlm/EndoCoT/resolve/main/fig/case.jpg
4.05 MB

- Xet hash:
- 76ab60bd98a94e952815e8b054a239f4703e535b80550358bc397df6bd2c2bfa
- Size of remote file:
- 4.05 MB
- SHA256:
- ce14ebf5bb45ecf896d95657148e22a0a61b47087cc5d41d57f5fb1dabf07a58
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.