GGUF
English
llama-cpp
gguf-my-repo
Triangle104 commited on
Commit
9ab5fdc
1 Parent(s): 80f981d

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +3 -190
README.md CHANGED
@@ -1,208 +1,21 @@
1
  ---
2
- base_model: tiiuae/falcon-7b
3
  datasets:
4
  - tiiuae/falcon-refinedweb
5
  language:
6
  - en
 
7
  license: apache-2.0
 
 
8
  tags:
9
  - llama-cpp
10
  - gguf-my-repo
11
- inference: false
12
- new_version: tiiuae/falcon-11B
13
  ---
14
 
15
  # Triangle104/falcon-7b-Q8_0-GGUF
16
  This model was converted to GGUF format from [`tiiuae/falcon-7b`](https://huggingface.co/tiiuae/falcon-7b) using llama.cpp via the ggml.ai's [GGUF-my-repo](https://huggingface.co/spaces/ggml-org/gguf-my-repo) space.
17
  Refer to the [original model card](https://huggingface.co/tiiuae/falcon-7b) for more details on the model.
18
 
19
- ---
20
- Model details:
21
- -
22
- Falcon-7B is a 7B parameters causal decoder-only model built by TII and trained on 1,500B tokens of RefinedWeb enhanced with curated corpora. It is made available under the Apache 2.0 license.
23
-
24
- 🤗 To get started with Falcon (inference, finetuning, quantization, etc.), we recommend reading this great blogpost fron HF!
25
- Why use Falcon-7B?
26
-
27
- It outperforms comparable open-source models (e.g., MPT-7B, StableLM, RedPajama etc.), thanks to being trained on 1,500B tokens of RefinedWeb enhanced with curated corpora. See the OpenLLM Leaderboard.
28
- It features an architecture optimized for inference, with FlashAttention (Dao et al., 2022) and multiquery (Shazeer et al., 2019).
29
- It is made available under a permissive Apache 2.0 license allowing for commercial use, without any royalties or restrictions.
30
-
31
- ⚠️ This is a raw, pretrained model, which should be further finetuned for most usecases. If you are looking for a version better suited to taking generic instructions in a chat format, we recommend taking a look at Falcon-7B-Instruct.
32
-
33
- 🔥 Looking for an even more powerful model? Falcon-40B is Falcon-7B's big brother!
34
-
35
- from transformers import AutoTokenizer, AutoModelForCausalLM
36
- import transformers
37
- import torch
38
-
39
- model = "tiiuae/falcon-7b"
40
-
41
- tokenizer = AutoTokenizer.from_pretrained(model)
42
- pipeline = transformers.pipeline(
43
- "text-generation",
44
- model=model,
45
- tokenizer=tokenizer,
46
- torch_dtype=torch.bfloat16,
47
- trust_remote_code=True,
48
- device_map="auto",
49
- )
50
- sequences = pipeline(
51
- "Girafatron is obsessed with giraffes, the most glorious animal on the face of this Earth. Giraftron believes all other animals are irrelevant when compared to the glorious majesty of the giraffe.\nDaniel: Hello, Girafatron!\nGirafatron:",
52
- max_length=200,
53
- do_sample=True,
54
- top_k=10,
55
- num_return_sequences=1,
56
- eos_token_id=tokenizer.eos_token_id,
57
- )
58
- for seq in sequences:
59
- print(f"Result: {seq['generated_text']}")
60
-
61
- 💥 Falcon LLMs require PyTorch 2.0 for use with transformers!
62
-
63
- For fast inference with Falcon, check-out Text Generation Inference! Read more in this blogpost.
64
-
65
- You will need at least 16GB of memory to swiftly run inference with Falcon-7B.
66
- Model Card for Falcon-7B
67
- Model Details
68
- Model Description
69
-
70
- Developed by: https://www.tii.ae;
71
- Model type: Causal decoder-only;
72
- Language(s) (NLP): English, German, Spanish, French (and limited capabilities in Italian, Portuguese, Polish, Dutch, Romanian, Czech, Swedish);
73
- License: Apache 2.0.
74
-
75
- Model Source
76
-
77
- Paper: coming soon.
78
-
79
- Uses
80
- Direct Use
81
-
82
- Research on large language models; as a foundation for further specialization and finetuning for specific usecases (e.g., summarization, text generation, chatbot, etc.)
83
- Out-of-Scope Use
84
-
85
- Production use without adequate assessment of risks and mitigation; any use cases which may be considered irresponsible or harmful.
86
- Bias, Risks, and Limitations
87
-
88
- Falcon-7B is trained on English and French data only, and 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.
89
- Recommendations
90
-
91
- We recommend users of Falcon-7B 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.
92
- How to Get Started with the Model
93
-
94
- from transformers import AutoTokenizer, AutoModelForCausalLM
95
- import transformers
96
- import torch
97
-
98
- model = "tiiuae/falcon-7b"
99
-
100
- tokenizer = AutoTokenizer.from_pretrained(model)
101
- pipeline = transformers.pipeline(
102
- "text-generation",
103
- model=model,
104
- tokenizer=tokenizer,
105
- torch_dtype=torch.bfloat16,
106
- trust_remote_code=True,
107
- device_map="auto",
108
- )
109
- sequences = pipeline(
110
- "Girafatron is obsessed with giraffes, the most glorious animal on the face of this Earth. Giraftron believes all other animals are irrelevant when compared to the glorious majesty of the giraffe.\nDaniel: Hello, Girafatron!\nGirafatron:",
111
- max_length=200,
112
- do_sample=True,
113
- top_k=10,
114
- num_return_sequences=1,
115
- eos_token_id=tokenizer.eos_token_id,
116
- )
117
- for seq in sequences:
118
- print(f"Result: {seq['generated_text']}")
119
-
120
- Training Details
121
- Training Data
122
-
123
- Falcon-7B was trained on 1,500B tokens of RefinedWeb, a high-quality filtered and deduplicated web dataset which we enhanced with curated corpora. Significant components from our curated copora were inspired by The Pile (Gao et al., 2020).
124
- Data source Fraction Tokens Sources
125
- RefinedWeb-English 79% 1,185B massive web crawl
126
- Books 7% 110B
127
- Conversations 6% 85B Reddit, StackOverflow, HackerNews
128
- Code 3% 45B
129
- RefinedWeb-French 3% 45B massive web crawl
130
- Technical 2% 30B arXiv, PubMed, USPTO, etc.
131
-
132
- The data was tokenized with the Falcon-7B/40B tokenizer.
133
- Training Procedure
134
-
135
- Falcon-7B was trained on 384 A100 40GB GPUs, using a 2D parallelism strategy (PP=2, DP=192) combined with ZeRO.
136
- Training Hyperparameters
137
- Hyperparameter Value Comment
138
- Precision bfloat16
139
- Optimizer AdamW
140
- Learning rate 6e-4 4B tokens warm-up, cosine decay to 1.2e-5
141
- Weight decay 1e-1
142
- Z-loss 1e-4
143
- Batch size 2304 30B tokens ramp-up
144
- Speeds, Sizes, Times
145
-
146
- Training happened in early March 2023 and took about two weeks.
147
- Evaluation
148
-
149
- Paper coming soon.
150
-
151
- See the OpenLLM Leaderboard for early results.
152
- Technical Specifications
153
- Model Architecture and Objective
154
-
155
- Falcon-7B is a causal decoder-only model trained on a causal language modeling task (i.e., predict the next token).
156
-
157
- The architecture is broadly adapted from the GPT-3 paper (Brown et al., 2020), with the following differences:
158
-
159
- Positionnal embeddings: rotary (Su et al., 2021);
160
- Attention: multiquery (Shazeer et al., 2019) and FlashAttention (Dao et al., 2022);
161
- Decoder-block: parallel attention/MLP with a single layer norm.
162
-
163
- Hyperparameter Value Comment
164
- Layers 32
165
- d_model 4544 Increased to compensate for multiquery
166
- head_dim 64 Reduced to optimise for FlashAttention
167
- Vocabulary 65024
168
- Sequence length 2048
169
- Compute Infrastructure
170
- Hardware
171
-
172
- Falcon-7B was trained on AWS SageMaker, on 384 A100 40GB GPUs in P4d instances.
173
- Software
174
-
175
- Falcon-7B was trained a custom distributed training codebase, Gigatron. It uses a 3D parallelism approach combined with ZeRO and high-performance Triton kernels (FlashAttention, etc.)
176
- Citation
177
-
178
- Paper coming soon 😊. In the meanwhile, you can use the following information to cite:
179
-
180
- @article{falcon40b,
181
- title={{Falcon-40B}: an open large language model with state-of-the-art performance},
182
- author={Almazrouei, Ebtesam and Alobeidli, Hamza and Alshamsi, Abdulaziz and Cappelli, Alessandro and Cojocaru, Ruxandra and Debbah, Merouane and Goffinet, Etienne and Heslow, Daniel and Launay, Julien and Malartic, Quentin and Noune, Badreddine and Pannier, Baptiste and Penedo, Guilherme},
183
- year={2023}
184
- }
185
-
186
- To learn more about the pretraining dataset, see the 📓 RefinedWeb paper.
187
-
188
- @article{refinedweb,
189
- title={The {R}efined{W}eb dataset for {F}alcon {LLM}: outperforming curated corpora with web data, and web data only},
190
- author={Guilherme Penedo and Quentin Malartic and Daniel Hesslow and Ruxandra Cojocaru and Alessandro Cappelli and Hamza Alobeidli and Baptiste Pannier and Ebtesam Almazrouei and Julien Launay},
191
- journal={arXiv preprint arXiv:2306.01116},
192
- eprint={2306.01116},
193
- eprinttype = {arXiv},
194
- url={https://arxiv.org/abs/2306.01116},
195
- year={2023}
196
- }
197
-
198
- License
199
-
200
- Falcon-7B is made available under the Apache 2.0 license.
201
- Contact
202
-
203
204
-
205
- ---
206
  ## Use with llama.cpp
207
  Install llama.cpp through brew (works on Mac and Linux)
208
 
 
1
  ---
 
2
  datasets:
3
  - tiiuae/falcon-refinedweb
4
  language:
5
  - en
6
+ inference: false
7
  license: apache-2.0
8
+ new_version: tiiuae/falcon-11B
9
+ base_model: tiiuae/falcon-7b
10
  tags:
11
  - llama-cpp
12
  - gguf-my-repo
 
 
13
  ---
14
 
15
  # Triangle104/falcon-7b-Q8_0-GGUF
16
  This model was converted to GGUF format from [`tiiuae/falcon-7b`](https://huggingface.co/tiiuae/falcon-7b) using llama.cpp via the ggml.ai's [GGUF-my-repo](https://huggingface.co/spaces/ggml-org/gguf-my-repo) space.
17
  Refer to the [original model card](https://huggingface.co/tiiuae/falcon-7b) for more details on the model.
18
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
  ## Use with llama.cpp
20
  Install llama.cpp through brew (works on Mac and Linux)
21