Falcon-40B is a causal decoder-only text generation model developed by TII. The first paragraph of the model page states 42B parameters, while the main text calls it a 40B-parameter model. The model address is https://huggingface.co/tiiuae/falcon-40b。
Purpose Falcon-40B is aimed at large language model research and can serve as a base model for further specialization and fine-tuning for specific tasks such as summarization, text generation, and chatbots. The model card explicitly states that this is a raw pretrained model and that most use cases should be further fine-tuned; if a version more suitable for general instructions in chat format is needed, it recommends checking Falcon-40B-Instruct.
Main capabilities The model is trained on 1,000B tokens of RefinedWeb, a dataset that has undergone high-quality filtering and deduplication and has been augmented with curated corpora. The model card states that Falcon-40B was the best open-source model available at the time and says it outperforms LLaMA, StableLM, RedPajama, MPT, etc.; related results can be found on the OpenLLM Leaderboard. The architecture is optimized for inference, using FlashAttention and multiquery attention; the decoder block uses parallel attention/MLP and two layers of normalization, and the positional embeddings are rotary. Multiquery attention uses an internal variant, using independent keys and values according to the degree of tensor parallelism.
Language support The model is mainly trained on English, German, Spanish, and French, and has limited capabilities in Italian, Portuguese, Polish, Dutch, Romanian, Czech, and Swedish. The model card notes that it will not generalize appropriately to other languages.
Usage The model card recommends referring to the Hugging Face blog for an introduction to Falcon inference, fine-tuning, quantization, and more; the materials do not provide specific installation commands or code. When using transformers, Falcon LLM requires PyTorch 2.0. For fast inference, Text Generation Inference can be used. Inference with Falcon-40B requires at least 85–100GB of memory.
Training and license Falcon-40B was trained on 384 A100 40GB GPUs using a 3D parallelism strategy (TP=8, PP=4, DP=12) combined with ZeRO; training began in December 2022 and took two months. The computing infrastructure was AWS SageMaker P4d instances, using the custom distributed training codebase Gigatron combined with high-performance Triton kernels. The model uses the Apache 2.0 license, allowing commercial use without royalties or restrictions. The paper has not yet been published.
Applicable scenarios and limitations Applicable scenarios include large language model research and use as a fine-tuning base for tasks such as summarization, text generation, and chatbots. Out-of-scope uses listed on the model card include: production use without adequate risk and mitigation assessment, and any use case that may be considered irresponsible or harmful. Because the training data mainly comes from the web, the model carries stereotypes and biases common on the web; users should consider fine-tuning for specific tasks and adopt safeguards and appropriate precautions in production use.