SFT data augmentation via conversation truncation
Project description
astra-augment
SFT data augmentation via conversation truncation for tool-calling trajectories.
Install
pip install astra-augment
Usage
# Expand last 20% of tool calls into separate training samples
astra-augment expand input.jsonl -o output.jsonl --ratio 0.2 --mode tool_call
# Expand last 40% of assistant responses
astra-augment expand input.jsonl -o output.jsonl --ratio 0.4 --mode response
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
astra_augment-0.5.0.tar.gz
(3.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file astra_augment-0.5.0.tar.gz.
File metadata
- Download URL: astra_augment-0.5.0.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1306eca8c20418567c8d16c535ef052134a63d0ce0f9d3df0713f7dc84f054dc
|
|
| MD5 |
12165a7dc53127449501762a1212399c
|
|
| BLAKE2b-256 |
f472f15c7a67da698b9a8efd027ee989d09276329b79c985bd18747f5aea3eb5
|
File details
Details for the file astra_augment-0.5.0-py3-none-any.whl.
File metadata
- Download URL: astra_augment-0.5.0-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4c3890b30f5e455e362bb2dff117276785cf2dcfc226d8c76c204150476bf29c
|
|
| MD5 |
6045d466b037f72caf4d5834452396d2
|
|
| BLAKE2b-256 |
916eeeea6c61579fe9945892806c3ba5703a7b6c9bc4ca5daf846e3326b8b794
|