FalconLit2 is a fine-tuned and quantized
Falcon 40B
language model, capable of processing long (up to 24K tokens) input sequences. By utilizing 4-bit
GPTQ quantization
and adapted RotaryEmbedding, FalconLite2 is able to process 10x longer contexts while consuming 4x less GPU memory than the original model. FalconLite2 is useful for applications such as topic retrieval, summarization, and question-answering. FalconLite2 can be deployed on a single AWS
g5.12x
instance with
TGI 1.0.3
and
TGI 1.1.0
, making it suitable for applications that require high performance in resource-constrained environments. You can also deploy FalconLite2 directly on SageMaker endpoints.
FalconLite2 evolves from
FalconLite
, and their similarities and differences are summarized below:
git clone https://github.com/awslabs/extending-the-context-length-of-open-source-llms.git falconlite-dev
cd falconlite-dev/falconlite2
# this may take a while to build updated vLLM CUDA kernels
./docker_build.sh
./start_falconlite.sh
Start TGI server-1.1.0
git clone https://github.com/awslabs/extending-the-context-length-of-open-source-llms.git falconlite-dev
cd falconlite-dev/falconlite2-tgi1.1.0
# this may take a while to build updated vLLM CUDA kernels
./docker_build_rebuild_vllm_rope-theta.sh
./start_falconlite.sh
Perform inference
# after FalconLite has been completely started
pip install -r ../script/requirements-client.txt
# test short context
python falconlite_client.py
# test long context of 13400 tokens, # which are copied from [Amazon Aurora FAQs](https://aws.amazon.com/rds/aurora/faqs/)
python falconlite_client.py -l
Important
- Use the prompt template below for FalconLite2:
<|prompter|>What are the main challenges to support a long context for LLM?<|endoftext|><|assistant|>
Important
- When using FalconLite2 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.
Deploy FalconLite2 on Amazon SageMaker
To deploy FalconLite2 on a SageMaker endpoint with TGI-1.0.3, please follow
this notebook
running on a SageMaker Notebook instance (e.g.
g5.xlarge
).
To deploy FalconLite2 on a SageMaker endpoint with TGI-1.1.0, please follow
this notebook
running on a SageMaker Notebook instance (e.g.
g5.xlarge
).
Evalution Result
We evaluated FalconLite2 against benchmarks that are specifically designed to assess the capabilities of LLMs in handling longer contexts.
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 FalconLite2 on huggingface.co
28
Total runs
0
24-hour runs
-1
3-day runs
-1
7-day runs
11
30-day runs
More Information About FalconLite2 huggingface.co Model
FalconLite2 huggingface.co is an AI model on huggingface.co that provides FalconLite2's model effect (), which can be used instantly with this amazon FalconLite2 model. huggingface.co supports a free trial of the FalconLite2 model, and also provides paid use of the FalconLite2. Support call FalconLite2 model through api, including Node.js, Python, http.
FalconLite2 huggingface.co is an online trial and call api platform, which integrates FalconLite2's modeling effects, including api services, and provides a free online trial of FalconLite2, you can try FalconLite2 online for free by clicking the link below.
amazon FalconLite2 online free url in huggingface.co:
FalconLite2 is an open source model from GitHub that offers a free installation service, and any user can find FalconLite2 on GitHub to install. At the same time, huggingface.co provides the effect of FalconLite2 install, users can directly use FalconLite2 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.