Instructions to use internlm/internlm-xcomposer2d5-7b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use internlm/internlm-xcomposer2d5-7b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("visual-question-answering", model="internlm/internlm-xcomposer2d5-7b", trust_remote_code=True)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("internlm/internlm-xcomposer2d5-7b", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
We couldn't connect to 'https://huggingface.co' to load this file
OSError: We couldn't connect to 'https://huggingface.co' to load this file, couldn't find it in the cached files and it looks like internlm/internlm-xcomposer2d5-7b is not the path to a directory containing a file named config.json.
Checkout your internet connection or see how to run the library in offline mode at 'https://huggingface.co/docs/transformers/installation#offline-mode'.
Could you help me on this? I am not sure how it comes. I am using HF-Mirror to download the models....
Thank you.
OSError: We couldn't connect to 'https://huggingface.co' to load this file, couldn't find it in the cached files and it looks like internlm/internlm-xcomposer2d5-7b is not the path to a directory containing a file named config.json.
Checkout your internet connection or see how to run the library in offline mode at 'https://huggingface.co/docs/transformers/installation#offline-mode'.Could you help me on this? I am not sure how it comes. I am using HF-Mirror to download the models....
Thank you.
The font (ixc_utils.py l13) and ViT (build_mlp.py l9) are still required to connect to huggingface. You could download the file separately and modify the script (build_mlp.py l9) to your local directory.