|
--- |
|
datasets: |
|
- bigscience/xP3 |
|
license: bigscience-bloom-rail-1.0 |
|
language: |
|
- ak |
|
- ar |
|
- as |
|
- bm |
|
- bn |
|
- ca |
|
- code |
|
- en |
|
- es |
|
- eu |
|
- fon |
|
- fr |
|
- gu |
|
- hi |
|
- id |
|
- ig |
|
- ki |
|
- kn |
|
- lg |
|
- ln |
|
- ml |
|
- mr |
|
- ne |
|
- nso |
|
- ny |
|
- or |
|
- pa |
|
- pt |
|
- rn |
|
- rw |
|
- sn |
|
- st |
|
- sw |
|
- ta |
|
- te |
|
- tn |
|
- ts |
|
- tum |
|
- tw |
|
- ur |
|
- vi |
|
- wo |
|
- xh |
|
- yo |
|
- zh |
|
- zu |
|
programming_language: |
|
- C |
|
- C++ |
|
- C# |
|
- Go |
|
- Java |
|
- JavaScript |
|
- Lua |
|
- PHP |
|
- Python |
|
- Ruby |
|
- Rust |
|
- Scala |
|
- TypeScript |
|
pipeline_tag: text-generation |
|
inference: false |
|
widget: |
|
- text: "一个传奇的开端,一个不灭的神话,这不仅仅是一部电影,而是作为一个走进新时代的标签,永远彪炳史册。Would you rate the previous review as positive, neutral or negative?" |
|
example_title: "zh-en sentiment" |
|
- text: "一个传奇的开端,一个不灭的神话,这不仅仅是一部电影,而是作为一个走进新时代的标签,永远彪炳史册。你认为这句话的立场是赞扬、中立还是批评?" |
|
example_title: "zh-zh sentiment" |
|
- text: "Suggest at least five related search terms to \"Mạng neural nhân tạo\"." |
|
example_title: "vi-en query" |
|
- text: "Proposez au moins cinq mots clés concernant «Réseau de neurones artificiels»." |
|
example_title: "fr-fr query" |
|
- text: "Explain in a sentence in Telugu what is backpropagation in neural networks." |
|
example_title: "te-en qa" |
|
- text: "Why is the sky blue?" |
|
example_title: "en-en qa" |
|
- text: "Explain to me in Traditional Chinese what is the difference between Bitcoin and Ethereum." |
|
example_title: "zh-en qa" |
|
- text: "Write a code snippet with O(log(n)) computational complexity." |
|
example_title: "code-en" |
|
- text: "Write a fairy tale about a troll saving a princess from a dangerous dragon. The fairy tale is a masterpiece that has achieved praise worldwide and its moral is \"Heroes Come in All Shapes and Sizes\". Story (in Spanish):" |
|
example_title: "es-en fable" |
|
- text: "Write a fable about wood elves living in a forest that is suddenly invaded by ogres. The fable is a masterpiece that has achieved praise worldwide and its moral is \"Violence is the last refuge of the incompetent\". Fable (in Hindi):" |
|
example_title: "hi-en fable" |
|
- text: "How many sides does a rectangle and heptagon have, when |
|
combined? Answer this question with some math. |
|
Ein Rechteck hat 4 Seiten. Ein Siebeneck hat 7 Seiten. |
|
In Kombination haben sie 4 + 7 = 11 Seiten. |
|
كم عدد الأضلاع التي يجمعها المربع والمثلث؟ |
|
Répondez à cette question en chinois." |
|
example_title: "en-de-ar-fr-zh math" |
|
model-index: |
|
- name: bloomz |
|
results: |
|
- task: |
|
type: Coreference resolution |
|
dataset: |
|
type: winogrande |
|
name: Winogrande XL (xl) |
|
config: xl |
|
split: validation |
|
revision: a80f460359d1e9a67c006011c94de42a8759430c |
|
metrics: |
|
- type: Accuracy |
|
value: 59.27 |
|
- task: |
|
type: Coreference resolution |
|
dataset: |
|
type: Muennighoff/xwinograd |
|
name: XWinograd (en) |
|
config: en |
|
split: test |
|
revision: 9dd5ea5505fad86b7bedad667955577815300cee |
|
metrics: |
|
- type: Accuracy |
|
value: 69.08 |
|
- task: |
|
type: Coreference resolution |
|
dataset: |
|
type: Muennighoff/xwinograd |
|
name: XWinograd (fr) |
|
config: fr |
|
split: test |
|
revision: 9dd5ea5505fad86b7bedad667955577815300cee |
|
metrics: |
|
- type: Accuracy |
|
value: 68.67 |
|
- task: |
|
type: Coreference resolution |
|
dataset: |
|
type: Muennighoff/xwinograd |
|
name: XWinograd (jp) |
|
config: jp |
|
split: test |
|
revision: 9dd5ea5505fad86b7bedad667955577815300cee |
|
metrics: |
|
- type: Accuracy |
|
value: 59.65 |
|
- task: |
|
type: Coreference resolution |
|
dataset: |
|
type: Muennighoff/xwinograd |
|
name: XWinograd (pt) |
|
config: pt |
|
split: test |
|
revision: 9dd5ea5505fad86b7bedad667955577815300cee |
|
metrics: |
|
- type: Accuracy |
|
value: 64.26 |
|
- task: |
|
type: Coreference resolution |
|
dataset: |
|
type: Muennighoff/xwinograd |
|
name: XWinograd (ru) |
|
config: ru |
|
split: test |
|
revision: 9dd5ea5505fad86b7bedad667955577815300cee |
|
metrics: |
|
- type: Accuracy |
|
value: 60.95 |
|
- task: |
|
type: Coreference resolution |
|
dataset: |
|
type: Muennighoff/xwinograd |
|
name: XWinograd (zh) |
|
config: zh |
|
split: test |
|
revision: 9dd5ea5505fad86b7bedad667955577815300cee |
|
metrics: |
|
- type: Accuracy |
|
value: 70.24 |
|
- task: |
|
type: Natural language inference |
|
dataset: |
|
type: anli |
|
name: ANLI (r1) |
|
config: r1 |
|
split: validation |
|
revision: 9dbd830a06fea8b1c49d6e5ef2004a08d9f45094 |
|
metrics: |
|
- type: Accuracy |
|
value: 48.6 |
|
- task: |
|
type: Natural language inference |
|
dataset: |
|
type: anli |
|
name: ANLI (r2) |
|
config: r2 |
|
split: validation |
|
revision: 9dbd830a06fea8b1c49d6e5ef2004a08d9f45094 |
|
metrics: |
|
- type: Accuracy |
|
value: 44.1 |
|
- task: |
|
type: Natural language inference |
|
dataset: |
|
type: anli |
|
name: ANLI (r3) |
|
config: r3 |
|
split: validation |
|
revision: 9dbd830a06fea8b1c49d6e5ef2004a08d9f45094 |
|
metrics: |
|
- type: Accuracy |
|
value: 45.5 |
|
- task: |
|
type: Natural language inference |
|
dataset: |
|
type: super_glue |
|
name: SuperGLUE (cb) |
|
config: cb |
|
split: validation |
|
revision: 9e12063561e7e6c79099feb6d5a493142584e9e2 |
|
metrics: |
|
- type: Accuracy |
|
value: 82.14 |
|
- task: |
|
type: Natural language inference |
|
dataset: |
|
type: super_glue |
|
name: SuperGLUE (rte) |
|
config: rte |
|
split: validation |
|
revision: 9e12063561e7e6c79099feb6d5a493142584e9e2 |
|
metrics: |
|
- type: Accuracy |
|
value: 85.56 |
|
- task: |
|
type: Natural language inference |
|
dataset: |
|
type: xnli |
|
name: XNLI (ar) |
|
config: ar |
|
split: validation |
|
revision: a5a45e4ff92d5d3f34de70aaf4b72c3bdf9f7f16 |
|
metrics: |
|
- type: Accuracy |
|
value: 60.68 |
|
- task: |
|
type: Natural language inference |
|
dataset: |
|
type: xnli |
|
name: XNLI (bg) |
|
config: bg |
|
split: validation |
|
revision: a5a45e4ff92d5d3f34de70aaf4b72c3bdf9f7f16 |
|
metrics: |
|
- type: Accuracy |
|
value: 48.43 |
|
- task: |
|
type: Natural language inference |
|
dataset: |
|
type: xnli |
|
name: XNLI (de) |
|
config: de |
|
split: validation |
|
revision: a5a45e4ff92d5d3f34de70aaf4b72c3bdf9f7f16 |
|
metrics: |
|
- type: Accuracy |
|
value: 54.38 |
|
- task: |
|
type: Natural language inference |
|
dataset: |
|
type: xnli |
|
name: XNLI (el) |
|
config: el |
|
split: validation |
|
revision: a5a45e4ff92d5d3f34de70aaf4b72c3bdf9f7f16 |
|
metrics: |
|
- type: Accuracy |
|
value: 47.43 |
|
- task: |
|
type: Natural language inference |
|
dataset: |
|
type: xnli |
|
name: XNLI (en) |
|
config: en |
|
split: validation |
|
revision: a5a45e4ff92d5d3f34de70aaf4b72c3bdf9f7f16 |
|
metrics: |
|
- type: Accuracy |
|
value: 67.47 |
|
- task: |
|
type: Natural language inference |
|
dataset: |
|
type: xnli |
|
name: XNLI (es) |
|
config: es |
|
split: validation |
|
revision: a5a45e4ff92d5d3f34de70aaf4b72c3bdf9f7f16 |
|
metrics: |
|
- type: Accuracy |
|
value: 61.24 |
|
- task: |
|
type: Natural language inference |
|
dataset: |
|
type: xnli |
|
name: XNLI (fr) |
|
config: fr |
|
split: validation |
|
revision: a5a45e4ff92d5d3f34de70aaf4b72c3bdf9f7f16 |
|
metrics: |
|
- type: Accuracy |
|
value: 61.37 |
|
- task: |
|
type: Natural language inference |
|
dataset: |
|
type: xnli |
|
name: XNLI (hi) |
|
config: hi |
|
split: validation |
|
revision: a5a45e4ff92d5d3f34de70aaf4b72c3bdf9f7f16 |
|
metrics: |
|
- type: Accuracy |
|
value: 60.2 |
|
- task: |
|
type: Natural language inference |
|
dataset: |
|
type: xnli |
|
name: XNLI (ru) |
|
config: ru |
|
split: validation |
|
revision: a5a45e4ff92d5d3f34de70aaf4b72c3bdf9f7f16 |
|
metrics: |
|
- type: Accuracy |
|
value: 54.02 |
|
- task: |
|
type: Natural language inference |
|
dataset: |
|
type: xnli |
|
name: XNLI (sw) |
|
config: sw |
|
split: validation |
|
revision: a5a45e4ff92d5d3f34de70aaf4b72c3bdf9f7f16 |
|
metrics: |
|
- type: Accuracy |
|
value: 52.09 |
|
- task: |
|
type: Natural language inference |
|
dataset: |
|
type: xnli |
|
name: XNLI (th) |
|
config: th |
|
split: validation |
|
revision: a5a45e4ff92d5d3f34de70aaf4b72c3bdf9f7f16 |
|
metrics: |
|
- type: Accuracy |
|
value: 43.78 |
|
- task: |
|
type: Natural language inference |
|
dataset: |
|
type: xnli |
|
name: XNLI (tr) |
|
config: tr |
|
split: validation |
|
revision: a5a45e4ff92d5d3f34de70aaf4b72c3bdf9f7f16 |
|
metrics: |
|
- type: Accuracy |
|
value: 45.7 |
|
- task: |
|
type: Natural language inference |
|
dataset: |
|
type: xnli |
|
name: XNLI (ur) |
|
config: ur |
|
split: validation |
|
revision: a5a45e4ff92d5d3f34de70aaf4b72c3bdf9f7f16 |
|
metrics: |
|
- type: Accuracy |
|
value: 50.8 |
|
- task: |
|
type: Natural language inference |
|
dataset: |
|
type: xnli |
|
name: XNLI (vi) |
|
config: vi |
|
split: validation |
|
revision: a5a45e4ff92d5d3f34de70aaf4b72c3bdf9f7f16 |
|
metrics: |
|
- type: Accuracy |
|
value: 61.0 |
|
- task: |
|
type: Natural language inference |
|
dataset: |
|
type: xnli |
|
name: XNLI (zh) |
|
config: zh |
|
split: validation |
|
revision: a5a45e4ff92d5d3f34de70aaf4b72c3bdf9f7f16 |
|
metrics: |
|
- type: Accuracy |
|
value: 56.91 |
|
- task: |
|
type: Program synthesis |
|
dataset: |
|
type: openai_humaneval |
|
name: HumanEval |
|
config: None |
|
split: test |
|
revision: e8dc562f5de170c54b5481011dd9f4fa04845771 |
|
metrics: |
|
- type: Pass@1 |
|
value: 12.06 |
|
- type: Pass@10 |
|
value: 26.53 |
|
- type: Pass@100 |
|
value: 48.44 |
|
- task: |
|
type: Sentence completion |
|
dataset: |
|
type: story_cloze |
|
name: StoryCloze (2016) |
|
config: "2016" |
|
split: validation |
|
revision: e724c6f8cdf7c7a2fb229d862226e15b023ee4db |
|
metrics: |
|
- type: Accuracy |
|
value: 96.26 |
|
- task: |
|
type: Sentence completion |
|
dataset: |
|
type: super_glue |
|
name: SuperGLUE (copa) |
|
config: copa |
|
split: validation |
|
revision: 9e12063561e7e6c79099feb6d5a493142584e9e2 |
|
metrics: |
|
- type: Accuracy |
|
value: 91.0 |
|
- task: |
|
type: Sentence completion |
|
dataset: |
|
type: xcopa |
|
name: XCOPA (et) |
|
config: et |
|
split: validation |
|
revision: 37f73c60fb123111fa5af5f9b705d0b3747fd187 |
|
metrics: |
|
- type: Accuracy |
|
value: 51.0 |
|
- task: |
|
type: Sentence completion |
|
dataset: |
|
type: xcopa |
|
name: XCOPA (ht) |
|
config: ht |
|
split: validation |
|
revision: 37f73c60fb123111fa5af5f9b705d0b3747fd187 |
|
metrics: |
|
- type: Accuracy |
|
value: 58.0 |
|
- task: |
|
type: Sentence completion |
|
dataset: |
|
type: xcopa |
|
name: XCOPA (id) |
|
config: id |
|
split: validation |
|
revision: 37f73c60fb123111fa5af5f9b705d0b3747fd187 |
|
metrics: |
|
- type: Accuracy |
|
value: 86.0 |
|
- task: |
|
type: Sentence completion |
|
dataset: |
|
type: xcopa |
|
name: XCOPA (it) |
|
config: it |
|
split: validation |
|
revision: 37f73c60fb123111fa5af5f9b705d0b3747fd187 |
|
metrics: |
|
- type: Accuracy |
|
value: 74.0 |
|
- task: |
|
type: Sentence completion |
|
dataset: |
|
type: xcopa |
|
name: XCOPA (qu) |
|
config: qu |
|
split: validation |
|
revision: 37f73c60fb123111fa5af5f9b705d0b3747fd187 |
|
metrics: |
|
- type: Accuracy |
|
value: 56.0 |
|
- task: |
|
type: Sentence completion |
|
dataset: |
|
type: xcopa |
|
name: XCOPA (sw) |
|
config: sw |
|
split: validation |
|
revision: 37f73c60fb123111fa5af5f9b705d0b3747fd187 |
|
metrics: |
|
- type: Accuracy |
|
value: 64.0 |
|
- task: |
|
type: Sentence completion |
|
dataset: |
|
type: xcopa |
|
name: XCOPA (ta) |
|
config: ta |
|
split: validation |
|
revision: 37f73c60fb123111fa5af5f9b705d0b3747fd187 |
|
metrics: |
|
- type: Accuracy |
|
value: 69.0 |
|
- task: |
|
type: Sentence completion |
|
dataset: |
|
type: xcopa |
|
name: XCOPA (th) |
|
config: th |
|
split: validation |
|
revision: 37f73c60fb123111fa5af5f9b705d0b3747fd187 |
|
metrics: |
|
- type: Accuracy |
|
value: 58.0 |
|
- task: |
|
type: Sentence completion |
|
dataset: |
|
type: xcopa |
|
name: XCOPA (tr) |
|
config: tr |
|
split: validation |
|
revision: 37f73c60fb123111fa5af5f9b705d0b3747fd187 |
|
metrics: |
|
- type: Accuracy |
|
value: 57.0 |
|
- task: |
|
type: Sentence completion |
|
dataset: |
|
type: xcopa |
|
name: XCOPA (vi) |
|
config: vi |
|
split: validation |
|
revision: 37f73c60fb123111fa5af5f9b705d0b3747fd187 |
|
metrics: |
|
- type: Accuracy |
|
value: 87.0 |
|
- task: |
|
type: Sentence completion |
|
dataset: |
|
type: xcopa |
|
name: XCOPA (zh) |
|
config: zh |
|
split: validation |
|
revision: 37f73c60fb123111fa5af5f9b705d0b3747fd187 |
|
metrics: |
|
- type: Accuracy |
|
value: 90.0 |
|
- task: |
|
type: Sentence completion |
|
dataset: |
|
type: Muennighoff/xstory_cloze |
|
name: XStoryCloze (ar) |
|
config: ar |
|
split: validation |
|
revision: 8bb76e594b68147f1a430e86829d07189622b90d |
|
metrics: |
|
- type: Accuracy |
|
value: 92.79 |
|
- task: |
|
type: Sentence completion |
|
dataset: |
|
type: Muennighoff/xstory_cloze |
|
name: XStoryCloze (es) |
|
config: es |
|
split: validation |
|
revision: 8bb76e594b68147f1a430e86829d07189622b90d |
|
metrics: |
|
- type: Accuracy |
|
value: 94.37 |
|
- task: |
|
type: Sentence completion |
|
dataset: |
|
type: Muennighoff/xstory_cloze |
|
name: XStoryCloze (eu) |
|
config: eu |
|
split: validation |
|
revision: 8bb76e594b68147f1a430e86829d07189622b90d |
|
metrics: |
|
- type: Accuracy |
|
value: 86.9 |
|
- task: |
|
type: Sentence completion |
|
dataset: |
|
type: Muennighoff/xstory_cloze |
|
name: XStoryCloze (hi) |
|
config: hi |
|
split: validation |
|
revision: 8bb76e594b68147f1a430e86829d07189622b90d |
|
metrics: |
|
- type: Accuracy |
|
value: 88.42 |
|
- task: |
|
type: Sentence completion |
|
dataset: |
|
type: Muennighoff/xstory_cloze |
|
name: XStoryCloze (id) |
|
config: id |
|
split: validation |
|
revision: 8bb76e594b68147f1a430e86829d07189622b90d |
|
metrics: |
|
- type: Accuracy |
|
value: 92.12 |
|
- task: |
|
type: Sentence completion |
|
dataset: |
|
type: Muennighoff/xstory_cloze |
|
name: XStoryCloze (my) |
|
config: my |
|
split: validation |
|
revision: 8bb76e594b68147f1a430e86829d07189622b90d |
|
metrics: |
|
- type: Accuracy |
|
value: 52.35 |
|
- task: |
|
type: Sentence completion |
|
dataset: |
|
type: Muennighoff/xstory_cloze |
|
name: XStoryCloze (ru) |
|
config: ru |
|
split: validation |
|
revision: 8bb76e594b68147f1a430e86829d07189622b90d |
|
metrics: |
|
- type: Accuracy |
|
value: 81.73 |
|
- task: |
|
type: Sentence completion |
|
dataset: |
|
type: Muennighoff/xstory_cloze |
|
name: XStoryCloze (sw) |
|
config: sw |
|
split: validation |
|
revision: 8bb76e594b68147f1a430e86829d07189622b90d |
|
metrics: |
|
- type: Accuracy |
|
value: 79.81 |
|
- task: |
|
type: Sentence completion |
|
dataset: |
|
type: Muennighoff/xstory_cloze |
|
name: XStoryCloze (te) |
|
config: te |
|
split: validation |
|
revision: 8bb76e594b68147f1a430e86829d07189622b90d |
|
metrics: |
|
- type: Accuracy |
|
value: 81.2 |
|
- task: |
|
type: Sentence completion |
|
dataset: |
|
type: Muennighoff/xstory_cloze |
|
name: XStoryCloze (zh) |
|
config: zh |
|
split: validation |
|
revision: 8bb76e594b68147f1a430e86829d07189622b90d |
|
metrics: |
|
- type: Accuracy |
|
value: 93.12 |
|
--- |
|
|
|
<!-- header start --> |
|
<div style="width: 100%;"> |
|
<img src="https://i.imgur.com/EBdldam.jpg" alt="TheBlokeAI" style="width: 100%; min-width: 400px; display: block; margin: auto;"> |
|
</div> |
|
<div style="display: flex; justify-content: space-between; width: 100%;"> |
|
<div style="display: flex; flex-direction: column; align-items: flex-start;"> |
|
<p><a href="https://discord.gg/theblokeai">Chat & support: my new Discord server</a></p> |
|
</div> |
|
<div style="display: flex; flex-direction: column; align-items: flex-end;"> |
|
<p><a href="https://www.patreon.com/TheBlokeAI">Want to contribute? TheBloke's Patreon page</a></p> |
|
</div> |
|
</div> |
|
<!-- header end --> |
|
|
|
# BigScience's BLOOMZ 176B GPTQ |
|
|
|
These files are GPTQ 4bit model files for [BigScience's BLOOMZ](https://huggingface.co./bigscience/bloomz). |
|
|
|
It is the result of quantising to 4bit using [AutoGPTQ](https://github.com/PanQiWei/AutoGPTQ). |
|
|
|
**This is a BIG model! 2 x 80GB or 3 x 48GB GPUs are required** |
|
|
|
## Important note: files must be joined before use |
|
|
|
It is not currently possible to shard GPTQ files, therefore the model file is one single 100+GB file. |
|
|
|
Huggingface Hub has a 50GB per-file limit. I have therefore been forced to split the file in to three parts for upload. |
|
|
|
I did this using the simple *nix command `split`. |
|
|
|
To join the files on any *nix system, run: |
|
``` |
|
cat gptq_model-4bit--1g.JOINBEFOREUSE.split-*.safetensors > gptq_model-4bit--1g.safetensors |
|
``` |
|
|
|
To join the files on Windows, open a Command Prompt and run: |
|
``` |
|
COPY /B gptq_model-4bit--1g.JOINBEFOREUSE.split-a.safetensors + gptq_model-4bit--1g.JOINBEFOREUSE.split-b.safetensors + gptq_model-4bit--1g.JOINBEFOREUSE.split-c.safetensors gptq_model-4bit--1g.safetensors |
|
``` |
|
|
|
The SHA256SUM of the joined file will be: |
|
``` |
|
50baeab9859362d22df6f822f158b9ba75b44ffc6605b715992fe6245aa6e93a gptq_model-4bit--1g.safetensors |
|
``` |
|
|
|
Once you have the joined file, you can safely delete `gptq_model-4bit--1g.JOINBEFOREUSE.split-*.safetensors`. |
|
|
|
## Repositories available |
|
|
|
* [4-bit GPTQ model for GPU inference](https://huggingface.co./TheBlokeAI/bloomz-175B-GPTQ) |
|
* [Unquantised fp16 model in pytorch format, for GPU inference and for further conversions](https://huggingface.co./bigscience/bloomz) |
|
|
|
## Two files provided - separate branches |
|
|
|
- Main branch: `gptq_model-4bit--1g.safetensors` |
|
- Group Size = None |
|
- Desc Act (act-order) = True |
|
- This version will use the least possible VRAM, and should have higher inference performance in CUDA mode |
|
- Branch `group_size_128g`: `gptq_model-4bit-128g.safetensors` |
|
- Group Size = 128g |
|
- Desc Act (act-oder) = True |
|
- This version will use more VRAM, which shouldn't be a problem as it shouldn't exceed 2 x 80GB or 3 x 48GB cards. |
|
- However CUDA inference performance is likely to be a lot slower, possibly necessitating the use of Triton mode. |
|
|
|
By default you will download the first file, unless you choose to download from branch `group_size_128g`. |
|
|
|
## Prompt template: none |
|
|
|
``` |
|
Translate to English: Je t’aime. |
|
Translation: |
|
``` |
|
|
|
## How to easily download and use this model in text-generation-webui |
|
|
|
Please make sure you're using the latest version of text-generation-webui. |
|
|
|
Note 1: this is a non-Llama model which cannot be used with ExLlama. Use Loader: AutoGPTQ. |
|
|
|
Note 2: As described above, you must join the files after downloading and before loading in text-generation-webui. |
|
|
|
1. Click the **Model tab**. |
|
2. Under **Download custom model or LoRA**, enter `TheBloke/bloomz-176B-GPTQ`. |
|
- If you would rather download the group_size 128g version, enter `TheBloke/bloomz-176B-GPTQ:group_size_128g` |
|
3. Click **Download**. |
|
4. The model will start downloading. Once it's finished it will say "Done". This is a huge model so it may take a while! |
|
5. Now follow the steps described above to join the model to get a single `.safetensors` file. |
|
6. Untick **Autoload model** |
|
7. In the top left, click the refresh icon next to **Model**. |
|
8. In the **Model** dropdown, choose the model you just downloaded: `bloomz-176B-GPTQ` |
|
9. Make sure Loader is set to AutGPTQ. |
|
10. This model cannot load on one GPU, so you should set **GPU Memory** accordingly. |
|
- If using two 80GB GPUs, try: GPU0 = 60GB, GPU1 = 79GB |
|
- If using three 48GB GPUs, try: GPU0 = 30GB, GPU1 = 47GB, GPU2 = 47GB |
|
11. Click **Save settings** to save your settings, and then **Reload** to load the model. |
|
12. The model will load, and is now ready for use! |
|
13. Once you're ready, click the **Text Generation tab** and enter a prompt to get started! |
|
|
|
## How to use this GPTQ model from Python code |
|
|
|
First make sure you have [AutoGPTQ](https://github.com/PanQiWei/AutoGPTQ) installed: |
|
|
|
`GITHUB_ACTIONS=true pip install auto-gptq` |
|
|
|
Because this model has to be joined locally, you must first download it. Example download code: |
|
|
|
```python |
|
from huggingface_hub import snapshot_download |
|
snapshot_download(repo_id="TheBloke/bloomz-176B-GPTQ", |
|
local_dir="/workspace/models/bloomz-176GB-GPTQ", |
|
local_dir_use_symlinks=False) |
|
``` |
|
|
|
If you want to download the group_size 128g file instead, add `revision="group_size_128g"` to the above command. |
|
|
|
Now join the three `split` files up as described above, to get a single `safetensors` file. |
|
|
|
Then try the following example code: |
|
|
|
```python |
|
from transformers import AutoTokenizer, pipeline, logging |
|
from auto_gptq import AutoGPTQForCausalLM, BaseQuantizeConfig |
|
import argparse |
|
|
|
# Use the local path you downloaded the model to and joined the split files in |
|
model_name_or_path = "/workspace/models/bloomz-176GB-GPTQ" |
|
model_basename = "gptq_model-4bit--1g" |
|
|
|
use_triton = False |
|
|
|
tokenizer = AutoTokenizer.from_pretrained(model_name_or_path, use_fast=True) |
|
|
|
model = AutoGPTQForCausalLM.from_quantized(model_name_or_path, |
|
model_basename=model_basename, |
|
max_memory={0: '60GiB', 1: '79GiB'} # max_memory is for 2 x 80GB GPUs; adjust if your config is different! |
|
use_safetensors=True, |
|
trust_remote_code=False, |
|
use_triton=use_triton, |
|
quantize_config=None) |
|
|
|
prompt = "Translate this to French: AI is the future of computing" |
|
prompt_template=f'''{prompt} |
|
Translation: |
|
''' |
|
|
|
print("\n\n*** Generate:") |
|
|
|
input_ids = tokenizer(prompt_template, return_tensors='pt').input_ids.cuda() |
|
output = model.generate(inputs=input_ids, temperature=0.7, max_new_tokens=512) |
|
print(tokenizer.decode(output[0])) |
|
|
|
# Inference can also be done using transformers' pipeline |
|
|
|
# Prevent printing spurious transformers error when using pipeline with AutoGPTQ |
|
logging.set_verbosity(logging.CRITICAL) |
|
|
|
print("*** Pipeline:") |
|
pipe = pipeline( |
|
"text-generation", |
|
model=model, |
|
tokenizer=tokenizer, |
|
max_new_tokens=512, |
|
temperature=0.7, |
|
top_p=0.95, |
|
repetition_penalty=1.15 |
|
) |
|
|
|
print(pipe(prompt_template)[0]['generated_text']) |
|
``` |
|
|
|
## Provided files |
|
|
|
## Main branch: |
|
|
|
**gptq_model-4bit--1g.safetensors** |
|
|
|
This will work with AutoGPTQ. It is untested with GPTQ-for-LLaMa. It will *not* work with ExLlama. |
|
|
|
It was created with group_size none (-1) to reduce VRAM usage, and with --act-order (desc_act) to improve accuracy of responses. |
|
|
|
* `gptq_model-4bit-128g.safetensors` |
|
* Works with AutoGPTQ in CUDA or Triton modes. |
|
* Does NOT work with [ExLlama](https://github.com/turboderp/exllama) as it's not a Llama model. |
|
* Works with GPTQ-for-LLaMa in CUDA mode. May have issues with GPTQ-for-LLaMa Triton mode. |
|
* Works with text-generation-webui, including one-click-installers. |
|
* Parameters: Groupsize = -1. Act Order / desc_act = True. |
|
|
|
## Branch `group_size_128g` |
|
|
|
**gptq_model-4bit-128g.safetensors** |
|
|
|
This will work with AutoGPTQ. It is untested with GPTQ-for-LLaMa. It will *not* work with ExLlama. |
|
|
|
It was created with both group_size 128g and --act-order (desc_act) for even higher inference accuracy, at the cost of increased VRAM usage. Because we already need 2 x 80GB or 3 x 48GB GPUs, I don't expect the increased VRAM usage to change the GPU requirements. |
|
|
|
**Note** Using group_size + desc_act together can significantly lower performance in AutoGPTQ CUDA. You might want to try AutoGPTQ Triton mode instead (Linux only.) |
|
|
|
* `gptq_model-4bit-128g.safetensors` |
|
* Works with AutoGPTQ in CUDA or Triton modes. |
|
* Does NOT work with [ExLlama](https://github.com/turboderp/exllama) as it's not a Llama model. |
|
* Untested with GPTQ-for-LLaMa. |
|
* Works with text-generation-webui, including one-click-installers. |
|
* Parameters: Groupsize = 128. Act Order / desc_act = True. |
|
|
|
<!-- footer start --> |
|
## Discord |
|
|
|
For further support, and discussions on these models and AI in general, join us at: |
|
|
|
[TheBloke AI's Discord server](https://discord.gg/theblokeai) |
|
|
|
## Thanks, and how to contribute. |
|
|
|
Thanks to the [chirper.ai](https://chirper.ai) team! |
|
|
|
I've had a lot of people ask if they can contribute. I enjoy providing models and helping people, and would love to be able to spend even more time doing it, as well as expanding into new projects like fine tuning/training. |
|
|
|
If you're able and willing to contribute it will be most gratefully received and will help me to keep providing more models, and to start work on new AI projects. |
|
|
|
Donaters will get priority support on any and all AI/LLM/model questions and requests, access to a private Discord room, plus other benefits. |
|
|
|
* Patreon: https://patreon.com/TheBlokeAI |
|
* Ko-Fi: https://ko-fi.com/TheBlokeAI |
|
|
|
**Special thanks to**: Luke from CarbonQuill, Aemon Algiz, Dmitriy Samsonov. |
|
|
|
**Patreon special mentions**: zynix , ya boyyy, Trenton Dambrowitz, Imad Khwaja, Alps Aficionado, chris gileta, John Detwiler, Willem Michiel, RoA, Mano Prime, Rainer Wilmers, Fred von Graf, Matthew Berman, Ghost , Nathan LeClaire, Iucharbius , Ai Maven, Illia Dulskyi, Joseph William Delisle, Space Cruiser, Lone Striker, Karl Bernard, Eugene Pentland, Greatston Gnanesh, Jonathan Leane, Randy H, Pierre Kircher, Willian Hasse, Stephen Murray, Alex , terasurfer , Edmond Seymore, Oscar Rangel, Luke Pendergrass, Asp the Wyvern, Junyu Yang, David Flickinger, Luke, Spiking Neurons AB, subjectnull, Pyrater, Nikolai Manek, senxiiz, Ajan Kanaga, Johann-Peter Hartmann, Artur Olbinski, Kevin Schuppel, Derek Yates, Kalila, K, Talal Aujan, Khalefa Al-Ahmad, Gabriel Puliatti, John Villwock, WelcomeToTheClub, Daniel P. Andersen, Preetika Verma, Deep Realms, Fen Risland, trip7s trip, webtim, Sean Connelly, Michael Levine, Chris McCloskey, biorpg, vamX, Viktor Bowallius, Cory Kujawski. |
|
|
|
Thank you to all my generous patrons and donaters! |
|
|
|
<!-- footer end --> |
|
|
|
# Original model card: BigScience's BLOOMZ 176B |
|
|
|
![xmtf](https://github.com/bigscience-workshop/xmtf/blob/master/xmtf_banner.png?raw=true) |
|
|
|
# Table of Contents |
|
|
|
1. [Model Summary](#model-summary) |
|
2. [Use](#use) |
|
3. [Limitations](#limitations) |
|
4. [Training](#training) |
|
5. [Evaluation](#evaluation) |
|
7. [Citation](#citation) |
|
|
|
# Model Summary |
|
|
|
> We present BLOOMZ & mT0, a family of models capable of following human instructions in dozens of languages zero-shot. We finetune BLOOM & mT5 pretrained multilingual language models on our crosslingual task mixture (xP3) and find the resulting models capable of crosslingual generalization to unseen tasks & languages. |
|
|
|
- **Repository:** [bigscience-workshop/xmtf](https://github.com/bigscience-workshop/xmtf) |
|
- **Paper:** [Crosslingual Generalization through Multitask Finetuning](https://arxiv.org/abs/2211.01786) |
|
- **Point of Contact:** [Niklas Muennighoff](mailto:[email protected]) |
|
- **Languages:** Refer to [bloom](https://huggingface.co./bigscience/bloom) for pretraining & [xP3](https://huggingface.co./datasets/bigscience/xP3) for finetuning language proportions. It understands both pretraining & finetuning languages. |
|
- **BLOOMZ & mT0 Model Family:** |
|
|
|
<div class="max-w-full overflow-auto"> |
|
<table> |
|
<tr> |
|
<th colspan="12">Multitask finetuned on <a style="font-weight:bold" href=https://huggingface.co./datasets/bigscience/xP3>xP3</a>. Recommended for prompting in English. |
|
</tr> |
|
<tr> |
|
<td>Parameters</td> |
|
<td>300M</td> |
|
<td>580M</td> |
|
<td>1.2B</td> |
|
<td>3.7B</td> |
|
<td>13B</td> |
|
<td>560M</td> |
|
<td>1.1B</td> |
|
<td>1.7B</td> |
|
<td>3B</td> |
|
<td>7.1B</td> |
|
<td>176B</td> |
|
</tr> |
|
<tr> |
|
<td>Finetuned Model</td> |
|
<td><a href=https://huggingface.co./bigscience/mt0-small>mt0-small</a></td> |
|
<td><a href=https://huggingface.co./bigscience/mt0-base>mt0-base</a></td> |
|
<td><a href=https://huggingface.co./bigscience/mt0-large>mt0-large</a></td> |
|
<td><a href=https://huggingface.co./bigscience/mt0-xl>mt0-xl</a></td> |
|
<td><a href=https://huggingface.co./bigscience/mt0-xxl>mt0-xxl</a></td> |
|
<td><a href=https://huggingface.co./bigscience/bloomz-560m>bloomz-560m</a></td> |
|
<td><a href=https://huggingface.co./bigscience/bloomz-1b1>bloomz-1b1</a></td> |
|
<td><a href=https://huggingface.co./bigscience/bloomz-1b7>bloomz-1b7</a></td> |
|
<td><a href=https://huggingface.co./bigscience/bloomz-3b>bloomz-3b</a></td> |
|
<td><a href=https://huggingface.co./bigscience/bloomz-7b1>bloomz-7b1</a></td> |
|
<td><a href=https://huggingface.co./bigscience/bloomz>bloomz</a></td> |
|
</tr> |
|
</tr> |
|
<tr> |
|
<th colspan="12">Multitask finetuned on <a style="font-weight:bold" href=https://huggingface.co./datasets/bigscience/xP3mt>xP3mt</a>. Recommended for prompting in non-English.</th> |
|
</tr> |
|
<tr> |
|
<td>Finetuned Model</td> |
|
<td></td> |
|
<td></td> |
|
<td></td> |
|
<td></td> |
|
<td><a href=https://huggingface.co./bigscience/mt0-xxl-mt>mt0-xxl-mt</a></td> |
|
<td></td> |
|
<td></td> |
|
<td></td> |
|
<td></td> |
|
<td><a href=https://huggingface.co./bigscience/bloomz-7b1-mt>bloomz-7b1-mt</a></td> |
|
<td><a href=https://huggingface.co./bigscience/bloomz-mt>bloomz-mt</a></td> |
|
</tr> |
|
<th colspan="12">Multitask finetuned on <a style="font-weight:bold" href=https://huggingface.co./datasets/Muennighoff/P3>P3</a>. Released for research purposes only. Strictly inferior to above models!</th> |
|
</tr> |
|
<tr> |
|
<td>Finetuned Model</td> |
|
<td></td> |
|
<td></td> |
|
<td></td> |
|
<td></td> |
|
<td><a href=https://huggingface.co./bigscience/mt0-xxl-p3>mt0-xxl-p3</a></td> |
|
<td></td> |
|
<td></td> |
|
<td></td> |
|
<td></td> |
|
<td><a href=https://huggingface.co./bigscience/bloomz-7b1-p3>bloomz-7b1-p3</a></td> |
|
<td><a href=https://huggingface.co./bigscience/bloomz-p3>bloomz-p3</a></td> |
|
</tr> |
|
<th colspan="12">Original pretrained checkpoints. Not recommended.</th> |
|
<tr> |
|
<td>Pretrained Model</td> |
|
<td><a href=https://huggingface.co./google/mt5-small>mt5-small</a></td> |
|
<td><a href=https://huggingface.co./google/mt5-base>mt5-base</a></td> |
|
<td><a href=https://huggingface.co./google/mt5-large>mt5-large</a></td> |
|
<td><a href=https://huggingface.co./google/mt5-xl>mt5-xl</a></td> |
|
<td><a href=https://huggingface.co./google/mt5-xxl>mt5-xxl</a></td> |
|
<td><a href=https://huggingface.co./bigscience/bloom-560m>bloom-560m</a></td> |
|
<td><a href=https://huggingface.co./bigscience/bloom-1b1>bloom-1b1</a></td> |
|
<td><a href=https://huggingface.co./bigscience/bloom-1b7>bloom-1b7</a></td> |
|
<td><a href=https://huggingface.co./bigscience/bloom-3b>bloom-3b</a></td> |
|
<td><a href=https://huggingface.co./bigscience/bloom-7b1>bloom-7b1</a></td> |
|
<td><a href=https://huggingface.co./bigscience/bloom>bloom</a></td> |
|
</tr> |
|
</table> |
|
</div> |
|
|
|
|
|
# Use |
|
|
|
## Intended use |
|
|
|
We recommend using the model to perform tasks expressed in natural language. For example, given the prompt "*Translate to English: Je t’aime.*", the model will most likely answer "*I love you.*". Some prompt ideas from our paper: |
|
- 一个传奇的开端,一个不灭的神话,这不仅仅是一部电影,而是作为一个走进新时代的标签,永远彪炳史册。你认为这句话的立场是赞扬、中立还是批评? |
|
- Suggest at least five related search terms to "Mạng neural nhân tạo". |
|
- Write a fairy tale about a troll saving a princess from a dangerous dragon. The fairy tale is a masterpiece that has achieved praise worldwide and its moral is "Heroes Come in All Shapes and Sizes". Story (in Spanish): |
|
- Explain in a sentence in Telugu what is backpropagation in neural networks. |
|
|
|
**Feel free to share your generations in the Community tab!** |
|
|
|
## How to use |
|
|
|
### CPU |
|
|
|
<details> |
|
<summary> Click to expand </summary> |
|
|
|
```python |
|
# pip install -q transformers |
|
from transformers import AutoModelForCausalLM, AutoTokenizer |
|
|
|
checkpoint = "bigscience/bloomz" |
|
|
|
tokenizer = AutoTokenizer.from_pretrained(checkpoint) |
|
model = AutoModelForCausalLM.from_pretrained(checkpoint) |
|
|
|
inputs = tokenizer.encode("Translate to English: Je t’aime.", return_tensors="pt") |
|
outputs = model.generate(inputs) |
|
print(tokenizer.decode(outputs[0])) |
|
``` |
|
|
|
</details> |
|
|
|
### GPU |
|
|
|
<details> |
|
<summary> Click to expand </summary> |
|
|
|
```python |
|
# pip install -q transformers accelerate |
|
from transformers import AutoModelForCausalLM, AutoTokenizer |
|
|
|
checkpoint = "bigscience/bloomz" |
|
|
|
tokenizer = AutoTokenizer.from_pretrained(checkpoint) |
|
model = AutoModelForCausalLM.from_pretrained(checkpoint, torch_dtype="auto", device_map="auto") |
|
|
|
inputs = tokenizer.encode("Translate to English: Je t’aime.", return_tensors="pt").to("cuda") |
|
outputs = model.generate(inputs) |
|
print(tokenizer.decode(outputs[0])) |
|
``` |
|
|
|
</details> |
|
|
|
### GPU in 8bit |
|
|
|
<details> |
|
<summary> Click to expand </summary> |
|
|
|
```python |
|
# pip install -q transformers accelerate bitsandbytes |
|
from transformers import AutoModelForCausalLM, AutoTokenizer |
|
|
|
checkpoint = "bigscience/bloomz" |
|
|
|
tokenizer = AutoTokenizer.from_pretrained(checkpoint) |
|
model = AutoModelForCausalLM.from_pretrained(checkpoint, device_map="auto", load_in_8bit=True) |
|
|
|
inputs = tokenizer.encode("Translate to English: Je t’aime.", return_tensors="pt").to("cuda") |
|
outputs = model.generate(inputs) |
|
print(tokenizer.decode(outputs[0])) |
|
``` |
|
|
|
</details> |
|
|
|
<!-- Necessary for whitespace --> |
|
### |
|
|
|
# Limitations |
|
|
|
**Prompt Engineering:** The performance may vary depending on the prompt. For BLOOMZ models, we recommend making it very clear when the input stops to avoid the model trying to continue it. For example, the prompt "*Translate to English: Je t'aime*" without the full stop (.) at the end, may result in the model trying to continue the French sentence. Better prompts are e.g. "*Translate to English: Je t'aime.*", "*Translate to English: Je t'aime. Translation:*" "*What is "Je t'aime." in English?*", where it is clear for the model when it should answer. Further, we recommend providing the model as much context as possible. For example, if you want it to answer in Telugu, then tell the model, e.g. "*Explain in a sentence in Telugu what is backpropagation in neural networks.*". |
|
|
|
# Training |
|
|
|
## Model |
|
|
|
- **Architecture:** Same as [bloom](https://huggingface.co./bigscience/bloom), also refer to the `config.json` file |
|
- **Finetuning steps:** 498 |
|
- **Finetuning tokens:** 2.09 billion |
|
- **Finetuning layout:** 72x pipeline parallel, 1x tensor parallel, 4x data parallel |
|
- **Precision:** bfloat16 |
|
|
|
## Hardware |
|
|
|
- **CPUs:** AMD CPUs with 512GB memory per node |
|
- **GPUs:** 288 A100 80GB GPUs with 8 GPUs per node (36 nodes) using NVLink 4 inter-gpu connects, 4 OmniPath links |
|
- **Communication:** NCCL-communications network with a fully dedicated subnet |
|
|
|
## Software |
|
|
|
- **Orchestration:** [Megatron-DeepSpeed](https://github.com/bigscience-workshop/Megatron-DeepSpeed) |
|
- **Optimizer & parallelism:** [DeepSpeed](https://github.com/microsoft/DeepSpeed) |
|
- **Neural networks:** [PyTorch](https://github.com/pytorch/pytorch) (pytorch-1.11 w/ CUDA-11.5) |
|
- **FP16 if applicable:** [apex](https://github.com/NVIDIA/apex) |
|
|
|
# Evaluation |
|
|
|
We refer to Table 7 from our [paper](https://arxiv.org/abs/2211.01786) & [bigscience/evaluation-results](https://huggingface.co./datasets/bigscience/evaluation-results) for zero-shot results on unseen tasks. The sidebar reports zero-shot performance of the best prompt per dataset config. |
|
|
|
# Citation |
|
```bibtex |
|
@article{muennighoff2022crosslingual, |
|
title={Crosslingual generalization through multitask finetuning}, |
|
author={Muennighoff, Niklas and Wang, Thomas and Sutawika, Lintang and Roberts, Adam and Biderman, Stella and Scao, Teven Le and Bari, M Saiful and Shen, Sheng and Yong, Zheng-Xin and Schoelkopf, Hailey and others}, |
|
journal={arXiv preprint arXiv:2211.01786}, |
|
year={2022} |
|
} |
|
``` |