Downloads · 30 days
0
j14i/cl-ds
cl-ds is a machine learning model from j14i. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as bsd-2-clause.
A fine-tuning dataset for training models to generate Common Lisp macros. Each example is a (before-code) → (macro-definition) → (after-expansion) triple.
Downloads · 30 days
0
Access
Public
Updated May 9, 2026
Repo size
39.2 MB
Likes
0
Public
Click a slice to open those files.
.jsonl39.9 MB · 34%
From the Hugging Face model README
A fine-tuning dataset for training models to generate Common Lisp macros. Each example is a (before-code) → (macro-definition) → (after-expansion) triple.
Instead of fine-tuning a model to "write code", fine-tune it to generate CL macros — code that writes code. The model learns to recognize AST patterns and generate transformations, not final output.
Each record contains:
instruction — Task description with the code pattern to addressinput — The "before" code showing the pattern that needs a macrooutput — The defmacro form that solves itcategory — Macro category (capture-management, anaphoric, dispatch, control-flow, DSL, compiler-macro, efficiency, scope)technique — Comma-separated techniques used (gensym, nested-backquote, dlambda, anaphor, code-walking, symbol-macrolet, defsetf, tagbody-go, once-only, macrolet, compiler-macro, recursive-expansion)complexity — basic, intermediate, or advancedquality_score — Classifier score from 0.0 to 1.0| Category | Description | Examples |
|---|---|---|
| capture-management | Hygienic macro writing utilities | defmacro/g!, defmacro!, with-gensyms |
| anaphoric | Deliberate variable capture for conciseness | aif, alambda, alet, aand |
| dispatch | Keyword-based dispatch and inter-closure protocols | dlambda, pandoriclet, with-pandoric |
| control-flow | New evaluation semantics via macros | nlet-tail, condlet, if-match, choose |
| DSL | Domain-specific embedded languages | defunits, _f (generalized setf), dbind |
| compiler-macro | Compile-time optimization of function calls | fformat compiler macro |
| efficiency | Performance-oriented macro techniques | sortf (sorting networks) |
| scope | Lexical scope manipulation | pandoric-eval |
The data is in instruction-input-output JSONL format, ready for fine-tuning:
from datasets import load_dataset
ds = load_dataset("j14i/cl-macros", split="train")
Target model size: ≤ 30B parameters (the domain is narrow — pattern matching on ASTs and transformations — so a smaller model suffices).