Skip to content

Conversation

suluyana
Copy link
Owner

@suluyana suluyana commented Feb 5, 2025

Hello,

First of all, thank you very much for your group's high-quality open-source LLM model compression/quantization toolkit. In this pull request, I have added an environment variable called "GPTQMODEL_USE_MODELSCOPE". With this environment variable, Chinese users can directly retrieve models from ModelScope, which is significantly faster.

ModelScope is the largest model community in China. It serves as a premier platform designed to bridge model checkpoints with model applications, offering the essential infrastructure to facilitate the sharing of open models and promote model-centric development. For more information, visit our GitHub page: ModelScope.

@suluyana suluyana changed the title enable modelscope (patch hub) enable modelscope Feb 11, 2025
@suluyana suluyana force-pushed the modelscope_patch_hub branch from 53308ec to 6bfe5cc Compare February 11, 2025 10:45
README.md Outdated
```py
from gptqmodel import GPTQModel
# load Qwen/Qwen2-VL-7B-Instruct-GPTQ-Int4 from modelscope
model = GPTQModel.load("Qwen/Qwen2-VL-7B-Instruct-GPTQ-Int4")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

result = model.generate("Uncovering deep insights begins with")[0]

也加上

import importlib.util # noqa: E402

if importlib.util.find_spec("modelscope") is None:
subprocess.check_call([sys.executable, "-m", "pip", "install", "modelscope>=1.23"])

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pip install modelscope -U 好了

@suluyana suluyana changed the title enable modelscope feat: load model from modelscope Feb 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants