ssmits commited on
Commit
802d1a6
1 Parent(s): 78cf521

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +30 -31
README.md CHANGED
@@ -1,55 +1,54 @@
1
  ---
2
- tags:
3
- - merge
4
- - mergekit
5
- - lazymergekit
6
- - tiiuae/falcon-11B
7
  base_model:
8
  - tiiuae/falcon-11B
9
- - tiiuae/falcon-11B
 
 
 
 
10
  ---
 
11
 
12
- # tiiuae/falcon-11B
13
 
14
- tiiuae/falcon-11B is a merge of the following models using [LazyMergekit](https://colab.research.google.com/drive/1obulZ1ROXHjYLn6PPZJwRR6GzgQogxxb?usp=sharing):
15
- * [tiiuae/falcon-11B](https://huggingface.co/tiiuae/falcon-11B)
 
 
 
 
 
 
16
  * [tiiuae/falcon-11B](https://huggingface.co/tiiuae/falcon-11B)
17
 
18
- ## 🧩 Configuration
 
 
19
 
20
  ```yaml
21
  slices:
22
  - sources:
23
  - model: tiiuae/falcon-11B
24
- layer_range: [0, 25]
25
  - sources:
26
  - model: tiiuae/falcon-11B
27
- layer_range: [56, 59]
28
  merge_method: passthrough
29
  dtype: bfloat16
30
  ```
31
 
32
- ## 💻 Usage
33
 
34
- ```python
35
- !pip install -qU transformers accelerate
36
 
37
- from transformers import AutoTokenizer
38
- import transformers
39
- import torch
40
 
41
- model = "ssmits/tiiuae/falcon-11B"
42
- messages = [{"role": "user", "content": "What is a large language model?"}]
43
 
44
- tokenizer = AutoTokenizer.from_pretrained(model)
45
- prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
46
- pipeline = transformers.pipeline(
47
- "text-generation",
48
- model=model,
49
- torch_dtype=torch.float16,
50
- device_map="auto",
51
- )
52
 
53
- outputs = pipeline(prompt, max_new_tokens=256, do_sample=True, temperature=0.7, top_k=50, top_p=0.95)
54
- print(outputs[0]["generated_text"])
55
- ```
 
1
  ---
 
 
 
 
 
2
  base_model:
3
  - tiiuae/falcon-11B
4
+ library_name: transformers
5
+ tags:
6
+ - mergekit
7
+ - merge
8
+
9
  ---
10
+ # sliced
11
 
12
+ This is a merge of pre-trained language models created using [mergekit](https://github.com/cg123/mergekit).
13
 
14
+ ## Merge Details
15
+ ### Merge Method
16
+
17
+ This model was merged using the passthrough merge method.
18
+
19
+ ### Models Merged
20
+
21
+ The following models were included in the merge:
22
  * [tiiuae/falcon-11B](https://huggingface.co/tiiuae/falcon-11B)
23
 
24
+ ### Configuration
25
+
26
+ The following YAML configuration was used to produce this model:
27
 
28
  ```yaml
29
  slices:
30
  - sources:
31
  - model: tiiuae/falcon-11B
32
+ layer_range: [0, 26]
33
  - sources:
34
  - model: tiiuae/falcon-11B
35
+ layer_range: [57, 59]
36
  merge_method: passthrough
37
  dtype: bfloat16
38
  ```
39
 
40
+ [PruneMe](https://github.com/arcee-ai/PruneMe) has been utilized using the wikimedia/wikipedia Swedish (sv) subset by investigating layer similarity with 2000 samples. The layer ranges for pruning were determined based on this analysis to maintain performance while reducing model size.
41
 
42
+ ![Layer Similarity Plot](https://cdn-uploads.huggingface.co/production/uploads/660c0a02cf274b3ab77dd6b7/aS5jGo6KLv6BsmW_aO4PB.png)
 
43
 
44
+ ## Direct Use
45
+ Research on large language models; as a foundation for further specialization and finetuning for specific usecases (e.g., summarization, text generation, chatbot, etc.)
 
46
 
47
+ ## Out-of-Scope Use
48
+ Production use without adequate assessment of risks and mitigation; any use cases which may be considered irresponsible or harmful.
49
 
50
+ ## Bias, Risks, and Limitations
51
+ Falcon2-5.5B is trained mostly on English, but also German, Spanish, French, Italian, Portuguese, Polish, Dutch, Romanian, Czech, Swedish. It will not generalize appropriately to other languages. Furthermore, as it is trained on a large-scale corpora representative of the web, it will carry the stereotypes and biases commonly encountered online.
 
 
 
 
 
 
52
 
53
+ ## Recommendations
54
+ We recommend users of Falcon2-5.5B to consider finetuning it for the specific set of tasks of interest, and for guardrails and appropriate precautions to be taken for any production use.