Skip to main content
ModelScope is a big repository of the models and datasets.
This page covers how to use the modelscope ecosystem within LangChain. It is broken into two parts: installation and setup, and then references to specific modelscope wrappers.

Installation

Head to ModelScope to sign up to ModelScope and generate an SDK token. Once you’ve done this set the MODELSCOPE_SDK_TOKEN environment variable:

Chat models

ModelScopeChatEndpoint class exposes chat models from ModelScope. See available models in the ModelScope API documentation.

Embeddings

ModelScopeEmbeddings class exposes embeddings from ModelScope.

LLMs

ModelScopeEndpoint class exposes LLMs from ModelScope.