Downloads · 30 days
10
12% of all-time downloads
a6188466/mini-recurrence-converter-dsl-adapter
mini-recurrence-converter-dsl-adapter is a machine learning model from a6188466. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for peft. The card lists the license as mit.
This model is a parameter-efficient fine-tuning (PEFT) LoRA adapter, designed as a demonstration and testbed for the Mini Recurrence Converter DSL module.
Downloads · 30 days
10
12% of all-time downloads
All-time downloads
86
Public
Repo size
92.3 MB
Likes
0
Public
Click a slice to open those files.
.safetensors92.3 MB · 100%
From the Hugging Face model README
mini-recurrence-converter-dsl-adapterThis model is a parameter-efficient fine-tuning (PEFT) LoRA adapter, designed as a demonstration and testbed for the Mini Recurrence Converter DSL module.
It is provided for demonstration and experimentation purposes only.
It translates English recurrence expressions, such as "every Monday at 10am" or "on the last Friday of each month", into structured function calls using that custom DSL.
microsoft/Phi-4-mini-instructThis adapter fine-tunes Phi-4-mini-instruct for parsing natural recurrence expressions into DSL format. It supports the DSL functions defined
in the Mini Recurrence Converter DSL module.
Example prompt:
$ You are a precise parser of recurring schedule expressions. Your only job is to translate natural language recurrence expressions into structured DSL function calls such as WEEKLY(...) or MONTHLY_BY_WEEKDAY(...). Do not explain or elaborate. Only return the code.
> every second Tuesday of the month at 1pm
< MONTHLY_BY_WEEKDAY(1, TU, 2, TIME(13, 0))
This adapter has been fine-tuned specifically as a demonstration and testbed for the Mini Recurrence Converter DSL module. It is not intended for general-purpose dialogue or unrelated tasks.
Trained on a6188466/mini-recurrence-converter-dsl-dataset using the dsl adapter from fifo-tool-datasets and fine_tune.py.
transformers, peft, trl (SFTTrainer){
"num_train_epochs": 15,
"train_batch_size": 1,
"learning_rate": 5e-06,
"lr_scheduler_type": "cosine",
"warmup_ratio": 0.2,
"bf16": true,
"seed": 0
}
{
"mean_token_accuracy": 0.9538259625434875,
"total_flos": 6218234638387200.0,
"train_loss": 0.4653199369477257,
"train_runtime": 932.994,
"train_samples_per_second": 4.486,
"train_steps_per_second": 4.486,
"final_learning_rate": 2.751554198876516e-11
}
These results demonstrate acceptable performance on evaluated queries. However, as this is a demonstration adapter trained on a narrow dataset, performance should be carefully and independently evaluated in each individual use case.
Evaluation script: evaluate_mini_recurrence_converter_dsl_model.py
This adapter is intended solely as a demonstration and testbed for the Mini Recurrence Converter DSL module. It should not be used beyond that scope.
It does not cover all phrasings or edge cases of English recurrence expressions. Instead, it focuses on illustrative examples that are supported by the module's DSL functions.
This adapter is provided as is, without warranties or guarantees of any kind. It is intended for demonstration and experimentation only.
This repository contains the weights and configuration for a LoRA adapter
derived from microsoft/Phi-4-mini-instruct (the base model).
For questions, feedback, or bug reports, please open an issue on GitHub or start a discussion on the Hugging Face Hub.