FalconLite is a quantized version of the
Falcon 40B SFT OASST-TOP1 model
, capable of processing long (i.e. 11K tokens) input sequences while consuming 4x less GPU memory. By utilizing 4-bit
GPTQ quantization
and adapted
dynamic NTK
RotaryEmbedding, FalconLite achieves a balance between latency, accuracy, and memory efficiency. With the ability to process 5x longer contexts than the original model, FalconLite is useful for applications such as topic retrieval, summarization, and question-answering. FalconLite can be deployed on a single AWS
g5.12x
instance with
TGI 0.9.2
, making it suitable for applications that require high performance in resource-constrained environments.
New!
FalconLite2 Model
To keep up with the updated model FalconLite2, please refer to
FalconLite2
.
git clone https://github.com/awslabs/extending-the-context-length-of-open-source-llms.git falconlite-dev
cd falconlite-dev/script
./docker_build.sh
./start_falconlite.sh
Perform inference
# after FalconLite has been completely started
pip install -r requirements-client.txt
python falconlite_client.py
New!
Amazon SageMaker Deployment
To deploy FalconLite on SageMaker endpoint, please follow
this notebook
.
Important
- When using FalconLite for inference for the first time, it may require a brief 'warm-up' period that can take 10s of seconds. However, subsequent inferences should be faster and return results in a more timely manner. This warm-up period is normal and should not affect the overall performance of the system once the initialisation period has been completed.
Evalution Result
We evaluated FalconLite against benchmarks that are specifically designed to assess the capabilities of LLMs in handling longer contexts. All evaluations were conducted without fine-tuning the model.
metrics
= the average number of generated tokens per second (TPS) =
nb-generated-tokens
/
end-to-end-response-time
The
end-to-end-response-time
= when the last token is generated - when the inference request is received
Instance
Input length
Input length
Input length
Input length
20
3300
5500
10000
g5.48x
22 tps
12 tps
12 tps
12 tps
g5.12x
18 tps
11 tps
11 tps
10 tps
Limitations
Our evaluation shows that FalconLite's capability in
Line Retrieval
is limited, and requires further effort.
While
g5.12x
is sufficient for FalconLite to handle 10K long contexts, a larger instance with more memory capcacity such as
g5.48x
is recommended for sustained, heavy workloads.
Before using the FalconLite model, it is important to perform your own independent assessment, and take measures to ensure that your use would comply with your own specific quality control practices and standards, and that your use would comply with the local rules, laws, regulations, licenses and terms that apply to you, and your content.
Runs of amazon FalconLite on huggingface.co
56
Total runs
0
24-hour runs
-8
3-day runs
-7
7-day runs
-2
30-day runs
More Information About FalconLite huggingface.co Model
FalconLite huggingface.co is an AI model on huggingface.co that provides FalconLite's model effect (), which can be used instantly with this amazon FalconLite model. huggingface.co supports a free trial of the FalconLite model, and also provides paid use of the FalconLite. Support call FalconLite model through api, including Node.js, Python, http.
FalconLite huggingface.co is an online trial and call api platform, which integrates FalconLite's modeling effects, including api services, and provides a free online trial of FalconLite, you can try FalconLite online for free by clicking the link below.
amazon FalconLite online free url in huggingface.co:
FalconLite is an open source model from GitHub that offers a free installation service, and any user can find FalconLite on GitHub to install. At the same time, huggingface.co provides the effect of FalconLite install, users can directly use FalconLite installed effect in huggingface.co for debugging and trial. It also supports api for free installation.