monsoon-nlp / mGPT-13B-quantized

huggingface.co
Total runs: 12
24-hour runs: 0
7-day runs: 4
30-day runs: 6
Model's Last Updated: September 03 2023
text-generation

Introduction of mGPT-13B-quantized

Model Details of mGPT-13B-quantized

mGPT-quantized

The concept: 8-bit quantized version of mGPT-13B , an LLM released by AI-Forever / Sberbank AI in 2022-2023.

On the GPT scale, it is between the # of parameters for GPT-2 and GPT-3, but comparison is tricky after training on 60+ languages.

My goal is to evaluate this on Hindi and Indonesian tasks, where there are fewer autoregressive language models in this size range.

For English: use a GPT model or LLaMa2-7B

For Arabic: in August 2023 I would recommend the bilingual JAIS model , which is also 13B parameters can be quantized.

In August 2023 AI-Forever added 1.3B-param models for 20+ languages. If your language is Mongolian, for example, it might be better to use mGPT-1.3B-mongol and not this one.

They also have a 1.3B param model for all languages, which I further quantized here: https://huggingface.co/monsoon-nlp/mGPT-quantized

How was the model created?

Quantization of mGPT-13B was done using bitsandbytes library, CoLab Pro with an A100 GPU, and a lot of space on Google Drive.

from transformers import BitsAndBytesConfig, GPT2LMHeadModel

quantization_config = BitsAndBytesConfig(
    load_in_8bit=True,
    bnb_8bit_compute_dtype=torch.bfloat16,
    bnb_8bit_use_double_quant=True,
    bnb_8bit_quant_type="nf4",
)

qmodel = GPT2LMHeadModel.from_pretrained(
    "ai-forever/mGPT-13B",
    load_in_8bit=True,
    torch_dtype=torch.bfloat16,
    quantization_config=quantization_config,
    device_map="auto"
)

qmodel.save_pretrained("model_name")
Future steps
  • mGPT could be further quantized (4-bit), but model.save_pretrained() currently throws a NotImplementedError error.

Runs of monsoon-nlp mGPT-13B-quantized on huggingface.co

12
Total runs
0
24-hour runs
0
3-day runs
4
7-day runs
6
30-day runs

More Information About mGPT-13B-quantized huggingface.co Model

More mGPT-13B-quantized license Visit here:

https://choosealicense.com/licenses/apache-2.0

mGPT-13B-quantized huggingface.co

mGPT-13B-quantized huggingface.co is an AI model on huggingface.co that provides mGPT-13B-quantized's model effect (), which can be used instantly with this monsoon-nlp mGPT-13B-quantized model. huggingface.co supports a free trial of the mGPT-13B-quantized model, and also provides paid use of the mGPT-13B-quantized. Support call mGPT-13B-quantized model through api, including Node.js, Python, http.

mGPT-13B-quantized huggingface.co Url

https://huggingface.co/monsoon-nlp/mGPT-13B-quantized

monsoon-nlp mGPT-13B-quantized online free

mGPT-13B-quantized huggingface.co is an online trial and call api platform, which integrates mGPT-13B-quantized's modeling effects, including api services, and provides a free online trial of mGPT-13B-quantized, you can try mGPT-13B-quantized online for free by clicking the link below.

monsoon-nlp mGPT-13B-quantized online free url in huggingface.co:

https://huggingface.co/monsoon-nlp/mGPT-13B-quantized

mGPT-13B-quantized install

mGPT-13B-quantized is an open source model from GitHub that offers a free installation service, and any user can find mGPT-13B-quantized on GitHub to install. At the same time, huggingface.co provides the effect of mGPT-13B-quantized install, users can directly use mGPT-13B-quantized installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

mGPT-13B-quantized install url in huggingface.co:

https://huggingface.co/monsoon-nlp/mGPT-13B-quantized

Url of mGPT-13B-quantized

mGPT-13B-quantized huggingface.co Url

Provider of mGPT-13B-quantized huggingface.co

monsoon-nlp
ORGANIZATIONS

Other API from monsoon-nlp

huggingface.co

Total runs: 58
Run Growth: 28
Growth Rate: 48.28%
Updated:September 03 2023
huggingface.co

Total runs: 27
Run Growth: 16
Growth Rate: 53.33%
Updated:February 03 2025
huggingface.co

Total runs: 19
Run Growth: 9
Growth Rate: 47.37%
Updated:February 25 2025
huggingface.co

Total runs: 7
Run Growth: -8
Growth Rate: -114.29%
Updated:May 23 2021