|
QDpy
|
Coupled prompt and architecture archives with provider-independent variation. More...
Go to the source code of this file.
Classes | |
| class | qdpy.algorithms.llmatic.LLMaticRequest |
| One typed architecture proposal, with explicit parents and generation controls. More... | |
| class | qdpy.algorithms.llmatic.LLMaticResult |
| Coupled archives and the distinct costs of generation and measurement. More... | |
Namespaces | |
| namespace | qdpy |
Functions | |
| qdpy.algorithms.llmatic.llmatic (archive, prompt_archive, *, initial, prompts, generate, evaluate, proposal_budget, evaluation_budget, batch_size=8, crossover_probability=.3, crossover_prompt="Combine the parents.", crossover_neighbors=2, prompt_exploration=.2, initial_temperature=.6, temperature_step=.1, seed=0) | |
| Evolve network and prompt archives under independent proposal and training budgets. | |
Coupled prompt and architecture archives with provider-independent variation.
Definition in file llmatic.py.
| qdpy.algorithms.llmatic.llmatic | ( | archive, | |
| prompt_archive, | |||
| * | , | ||
| initial, | |||
| prompts, | |||
| generate, | |||
| evaluate, | |||
| proposal_budget, | |||
| evaluation_budget, | |||
| batch_size = 8, | |||
| crossover_probability = .3, | |||
| crossover_prompt = "Combine the parents.", | |||
| crossover_neighbors = 2, | |||
| prompt_exploration = .2, | |||
| initial_temperature = .6, | |||
| temperature_step = .1, | |||
| seed = 0 ) |
Evolve network and prompt archives under independent proposal and training budgets.
| archive | Empty best-only Grid or CVTGrid of immutable architecture payloads. |
| prompt_archive | Distinct Grid or CVTGrid over normalized prompt index and temperature. |
| initial | Known architecture payload or seed for the first proposals. |
| prompts | Ordered collection of distinct mutation prompt strings. |
| generate | Callable (LLMaticRequest, rng) returning an architecture or None. |
| evaluate | Callable (architecture) returning scalar quality and descriptors, or None. |
| proposal_budget | Maximum calls to the generator. |
| evaluation_budget | Maximum distinct architecture training or lookup calls. |
| batch_size | Number of requests per frozen archive batch. |
| crossover_probability | Probability of requesting crossover when neighbors exist. |
| crossover_prompt | Fixed instruction for a crossover. |
| crossover_neighbors | Number of neighbors supplied with the anchor architecture. |
| prompt_exploration | Probability of choosing a uniformly sampled prompt template. |
| initial_temperature | Baseline generator temperature in [0, 1]. |
| temperature_step | Maximum temperature jitter and feedback adjustment scale. |
| seed | Private NumPy seed. |
Reward prompts that produce good measured architectures. Curiosity is tracked per template. A new archive entry earns one point, rejection costs half a point, and a failed mutation costs one point. Only measured models can earn credit for exceeding the previous batch's best architecture. The prompt grid stores cumulative credits and uses normalized template index and temperature as descriptors. The network grid stores measured validation quality. The evaluator is assumed stationary and deterministic for an immutable architecture (including rejected ones). Each payload is measured at most once. The initial architecture supplies a parent without using a measurement call. It can enter the archive if a generator proposes it.
Definition at line 85 of file llmatic.py.