Community Open Library

ML Scripts from the Community

Discover curated training and testing scripts for HuggingFace, PyTorch, LoRA & more. Load directly into FrameTrain – in seconds.

5 training scripts
3 test scripts
7 verified
Log in to upload

8 scripts found

Training

test

test

transformersLLMFine-Tuning
3 months ago
10
Training Verified

CLIP fine-tuning on image + caption pairs

Teach CLIP your own products, style or domain terms for image search and zero-shot classification. Reads metadata.csv (file_name, caption) or an image with a .txt file of the same name and reports contrastive loss and retrieval recall@1 before and after.

transformersVisionFine-Tuning
#clip#contrastive#image-text#retrieval
18 days ago
00
Training Verified

Anomaly detection on tables (autoencoder)

Find unusual rows without labels: an autoencoder learns what a normal row looks like and scores every row by its reconstruction error. Works on CSV, TSV or Parquet with numeric and categorical columns and writes the scores of all rows plus a threshold. The base model's weights are not used, so a blank Tabular model is enough.

pytorchCustomCustom
#anomaly-detection#tabular#autoencoder#unsupervised
18 days ago
00
Training Verified

Whisper fine-tuning with LoRA

Adapt Whisper to your speakers, accent or vocabulary with little memory: only a small LoRA adapter is trained and merged at the end, so the saved version works like a normal Whisper model in tests, laboratory and hosting. Reads audio + transcript pairs and reports word error rate before and after.

transformersSeq2SeqLoRA / QLoRA
#whisper#lora#speech-recognition#peft
18 days ago
00
Test Verified

Robustness check for text classifiers

Does the prediction survive small changes? Runs the test data as it is and with lower case, removed punctuation, typos and extra spaces, then reports accuracy per variant and how often the prediction flips, with an example.

transformersClassifierText Classification
#robustness#evaluation#typos#text-classification
18 days ago
00
Test Verified

Calibration check (ECE) for text classifiers

Can you trust the confidence? Compares confidence with actual accuracy in ten bins, reports the Expected Calibration Error and searches a temperature that closes the gap.

transformersClassifierText Classification
#calibration#ece#confidence#evaluation
18 days ago
00
Test Verified

Zero-shot forecast baseline with Chronos

Forecast the last part of your time series with the pretrained Chronos model, without any training, and compare it with a naive forecast (MAE, MASE, coverage of the 80 % band). The number your own model has to beat. Downloads chronos-bolt-tiny (about 35 MB) unless the selected model is a Chronos checkpoint.

pytorchCustomCustom
#time-series#forecasting#chronos#zero-shot#baseline
18 days ago
00
Training Verified

Domain adaptation with masked language modeling

Continue pre-training BERT, RoBERTa, DistilBERT or ELECTRA on your own unlabeled text, so a later classification or NER fine-tuning starts from a model that knows your vocabulary. Reads any table with a text column or .txt files and reports validation loss and perplexity before and after.

transformersClassifierPre-Training
#mlm#bert#domain-adaptation#unlabeled-text
18 days ago
00

What is the FrameTrain Open Library?

A free, community-run collection of ML scripts – for anyone who wants to train or test AI models locally.

Training Scripts

Complete Python scripts for fine-tuning HuggingFace models. From LoRA and QLoRA for LLMs to BERT classifiers and vision transformers – all scripts run directly in FrameTrain on your local GPU.

Test & Evaluation Scripts

Evaluation and benchmark scripts for testing trained models. Measures accuracy, F1 score, latency, and throughput. Compatible with all model formats FrameTrain supports: PyTorch, SafeTensors, and GGUF.

Verified Scripts

The FrameTrain team reviews and verifies selected scripts for correctness, safety, and best practices. Verified scripts carry a green badge and are shown with priority.

Supported Frameworks & Technologies

All scripts in the Open Library are built on common open-source ML frameworks and run natively in FrameTrain on Windows, macOS (Apple Silicon), and Linux.

HuggingFace TransformersPyTorchPEFT / LoRAbitsandbytes (4-bit)DatasetsTRLAcceleratescikit-learn

How to Use the Open Library

01

Search & filter scripts

Use search and filters by type (training / test), framework, and verification status to find the right script.

02

Preview & review

Open the detail view, read the full script, check tags and metadata – before you download it.

03

Load into FrameTrain

In the desktop app, click "Open Library" – the script loads directly into the Dev Train or Dev Test editor.

Use Scripts Directly in FrameTrain

In the desktop app, open the Open Library with one click – and load any script straight into your editor. No copy-paste, no file chaos.

Feedback

What did you notice? Bugs, ideas, praise – it goes straight to the developer.

What's it about?