danasone commited on
Commit
ca2e4fc
1 Parent(s): 98f0b41

Upload 6 files

Browse files
.gitattributes CHANGED
@@ -32,3 +32,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
32
  *.zip filter=lfs diff=lfs merge=lfs -text
33
  *.zst filter=lfs diff=lfs merge=lfs -text
34
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
32
  *.zip filter=lfs diff=lfs merge=lfs -text
33
  *.zst filter=lfs diff=lfs merge=lfs -text
34
  *tfevents* filter=lfs diff=lfs merge=lfs -text
35
+ tokenizer.json filter=lfs diff=lfs merge=lfs -text
README.md CHANGED
@@ -1,3 +1,32 @@
1
- ---
2
- license: openrail
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # BLOOM, a version for Petals
2
+
3
+ This model is a version of [bigscience/bloom](https://huggingface.co/bigscience/bloom)
4
+ post-processed to be run at home using the [Petals](https://github.com/bigscience-workshop/petals#readme) swarm.
5
+
6
+ Please check out:
7
+
8
+ - The [original model card](https://huggingface.co/bigscience/bloom)
9
+ to learn about the model's capabilities, specifications, and terms of use.
10
+ - The [Petals repository](https://github.com/bigscience-workshop/petals#readme)
11
+ to learn how to install Petals and run this model over the Petals swarm.
12
+
13
+ We provide minimal code examples below.
14
+
15
+ ## Using the model
16
+
17
+ ```python
18
+ from petals import DistributedBloomForCausalLM
19
+
20
+ model = DistributedBloomForCausalLM.from_pretrained("bigscience/bloom-petals")
21
+ # Embeddings & prompts are on your device, BLOOM blocks are distributed across the Internet
22
+
23
+ inputs = tokenizer("A cat sat", return_tensors="pt")["input_ids"]
24
+ outputs = model.generate(inputs, max_new_tokens=5)
25
+ print(tokenizer.decode(outputs[0])) # A cat sat on a mat...
26
+ ```
27
+
28
+ ## Serving the model blocks
29
+
30
+ ```bash
31
+ python -m petals.cli.run_server bigscience/bloom-petals
32
+ ```
config.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "apply_residual_connection_post_layernorm": false,
3
+ "architectures": [
4
+ "BloomForCausalLM"
5
+ ],
6
+ "attention_dropout": 0.0,
7
+ "attention_softmax_in_fp32": true,
8
+ "bos_token_id": 1,
9
+ "dht_prefix": "bigscience/bloom-petals",
10
+ "eos_token_id": 2,
11
+ "hidden_dropout": 0.0,
12
+ "hidden_size": 14336,
13
+ "initializer_range": 0.02,
14
+ "layer_norm_epsilon": 1e-05,
15
+ "masked_softmax_fusion": true,
16
+ "model_type": "bloom",
17
+ "n_head": 112,
18
+ "n_layer": 70,
19
+ "pad_token_id": 3,
20
+ "pretraining_tp": 4,
21
+ "slow_but_exact": false,
22
+ "transformers_version": "4.21.0.dev0",
23
+ "torch_dtype": "bfloat16",
24
+ "use_cache": true,
25
+ "vocab_size": 250880
26
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e62847c8302767493f72ec684c4a7bfe6d21247c163bea70e82ef8e5c209e0a2
3
+ size 7193348019
special_tokens_map.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": "<s>",
3
+ "eos_token": "</s>",
4
+ "pad_token": "<pad>",
5
+ "unk_token": "<unk>"
6
+ }
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8f6efc66e73f1fd69da4f436e48befb519fdff3fe18910850c1d41bd862293a5
3
+ size 14500443
tokenizer_config.json ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "bos_token": "<s>",
4
+ "eos_token": "</s>",
5
+ "name_or_path": "bigscience/bloom",
6
+ "pad_token": "<pad>",
7
+ "padding_side": "left",
8
+ "special_tokens_map_file": null,
9
+ "tokenizer_class": "BloomTokenizer",
10
+ "unk_token": "<unk>"
11
+ }