Fine-tune DistilBert on JSONL Dataset — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Fine-tune DistilBert on JSONL Dataset (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Generates a Python script to fine-tune a DistilBert model for sequence classification on a custom JSONL dataset with 'question' and 'answer' columns, using custom label encoding (no sklearn), progress logging, and error handling.
You are a Machine Learning Engineer. Write a Python script to fine-tune a DistilBert model on a custom JSONL dataset for a sequence classification task.
transformers, datasets, and torch. Do not use sklearn.DistilBertForSequenceClassification from 'distilbert-base-uncased'.answer_to_id = {answer: idx for idx, answer in enumerate(unique_answers)}.DistilBertTokenizerFast. Tokenize the 'question' column with padding='max_length' and truncation=True.Trainer API.TrainingArguments with output_dir='./results', num_train_epochs=2, per_device_train_batch_size=32, evaluation_strategy='epoch', save_strategy='epoch', load_best_model_at_end=True, and logging_dir='./logs'.num_labels equal to the number of unique answers.try...except block to catch and print exceptions.sklearn.preprocessing.LabelEncoder.~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.