Skip to main content

FMS Acceleration for Instruct Lab

This library contains plugins to accelerate finetuning with the following optimizations:

  1. Padding-Free Flash Attention Computation

Plugins

Plugin Description Depends Loading Augmentation Callbacks
padding_free Padding-Free Flash Attention Computation flash_attn ✅ ✅

Native Transformers Support from v4.44.0

Transformers natively supports padding-free from v4.44.0 see here. The padding-free plugin will use the transformers library if compatible, otherwise if transformers < v4.44.0 the plugin will use an internal implementation instead.

Known Issues

Currently Only Supports Pre-Tokenized Dataset

The padding-free plugin currently only works with pre-tokenized datasets, this is because it is currently designed to replace the data collator from SFTTrainer with a custom data collator to manipulate the input to the modified flash attention forward.

There are some cases, the data collator for SFTTrainer will handle the formatting and tokenization from raw text datasets. The plugin is currently unable to both handle the original data collation and apply its custom data collator over it as the same time. This issue will be addressed in a future commit to support this case.

In the meantime, the plugin expects the user to provide a pretokenized dataset that

  • is formatted with a template for instruct-tuning cases
  • is tokenized
  • has template labels that are masked to exclude from loss computation
  • has eos token appended

Metadata

Release files for fms-acceleration-ilab 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for fms-acceleration-ilab 0.1.0
File Interpreter ABI Platform Actions
fms_acceleration_ilab-0.1.0-py3-none-any.whl Python 3 none any Details for fms_acceleration_ilab-0.1.0-py3-none-any.whl

Release files / fms_acceleration_ilab-0.1.0-py3-none-any.whl

Download URL fms_acceleration_ilab-0.1.0-py3-none-any.whl
Size 8.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
376f84b064990cf647863c29cb3037f0a47cf4a2a9e5cecb954110a33ccae25c
BLAKE2b-256 checksum
How to use checksums
a02eff21241f823dff4451e55f595a19f4793f8cf262b60c9bc02ce4863d518b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.0 CPython/3.12.4

Security for fms-acceleration-ilab 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page