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")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("internlm/internlm-xcomposer2d5-7b", dtype="auto") - Notebooks
- Google Colab
- Kaggle
lmdeploy usage
#4
by jzchai-exwzd - opened
Is it possible to use it with lmdeploy yet?
I got
RuntimeError: [TM][ERROR] Assertion fail: /lmdeploy/src/turbomind/python/bind.cpp:294
when trying to run it with
lmdeploy serve api_server internlm/internlm-xcomposer2d5-7b
With or without the "--backend turbomind" option, it was the same error.