Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FEAT: Yi chat gptq #876

Merged
merged 8 commits into from
Jan 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 17 additions & 2 deletions doc/source/models/builtin/llm/yi-chat.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,22 @@ Specifications
^^^^^^^^^^^^^^


Model Spec 1 (pytorch, 34 Billion)
Model Spec 1 (gptq, 34 Billion)
++++++++++++++++++++++++++++++++++++++++

- **Model Format:** gptq
- **Model Size (in billions):** 34
- **Quantizations:** 8bits
- **Model ID:** 01-ai/Yi-34B-Chat-{quantization}
- **Model Hubs**: `Hugging Face <https://huggingface.co/01-ai/Yi-34B-Chat-{quantization}>`_, `ModelScope <https://modelscope.cn/models/01ai/Yi-34B-Chat-{quantization}>`_

Execute the following command to launch the model, remember to replace ``${quantization}`` with your
chosen quantization method from the options listed above::

xinference launch --model-name Yi-chat --size-in-billions 34 --model-format gptq --quantization ${quantization}


Model Spec 2 (pytorch, 34 Billion)
++++++++++++++++++++++++++++++++++++++++

- **Model Format:** pytorch
Expand All @@ -29,7 +44,7 @@ chosen quantization method from the options listed above::
xinference launch --model-name Yi-chat --size-in-billions 34 --model-format pytorch --quantization ${quantization}


Model Spec 2 (ggufv2, 34 Billion)
Model Spec 3 (ggufv2, 34 Billion)
++++++++++++++++++++++++++++++++++++++++

- **Model Format:** ggufv2
Expand Down
8 changes: 8 additions & 0 deletions xinference/model/llm/llm_family.json
Original file line number Diff line number Diff line change
Expand Up @@ -2477,6 +2477,14 @@
],
"model_description": "The Yi series models are large language models trained from scratch by developers at 01.AI.",
"model_specs": [
{
"model_format": "gptq",
"model_size_in_billions": 34,
"quantizations": [
"8bits"
],
"model_id": "01-ai/Yi-34B-Chat-{quantization}"
},
{
"model_format": "pytorch",
"model_size_in_billions": 34,
Expand Down
9 changes: 9 additions & 0 deletions xinference/model/llm/llm_family_modelscope.json
Original file line number Diff line number Diff line change
Expand Up @@ -1108,6 +1108,15 @@
],
"model_description": "The Yi series models are large language models trained from scratch by developers at 01.AI.",
"model_specs": [
{
"model_format": "gptq",
"model_size_in_billions": 34,
"quantizations": [
"8bits"
],
"model_id": "01ai/Yi-34B-Chat-{quantization}",
"model_revision": "master"
},
{
"model_format": "pytorch",
"model_size_in_billions": 34,
Expand Down
Loading