File size: 3,525 Bytes
ab19855
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
b64c77d
ab19855
 
b64c77d
ab19855
b64c77d
 
 
 
 
 
 
 
 
ab19855
 
 
 
b64c77d
 
ab19855
 
 
b64c77d
ab19855
b64c77d
ab19855
 
 
 
 
 
b64c77d
ab19855
b64c77d
ab19855
 
 
 
 
b64c77d
ab19855
 
b64c77d
 
 
 
 
 
ab19855
 
 
b64c77d
ab19855
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
b64c77d
 
 
ab19855
 
 
b64c77d
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
---
base_model: google/flan-t5-base
library_name: peft
pipeline_tag: text2text-generation
tags:
- p2
- repository-library
- research-library
- section-to-algorithm
- t3_pdf
---

# Section To Algorithm

Generates algorithmic descriptions from method or section-level paper text.

## Model Details

- Artifact type: LoRA adapter
- Base model: `google/flan-t5-base`
- Backbone type: `encoder_decoder`
- Model ID: `P2`
- Tier: `T3_pdf`
- Role in stack: full-paper or structured-PDF component

This model is part of the Repository Library stack, a research system for indexing, retrieving, aligning, and reasoning over scientific papers, structured paper content, repositories, and cross-domain links between them.

## Model Sources

- Hugging Face repo: `https://huggingface.co/PeytonT/section-to-algorithm`
- Hugging Face collection: `https://huggingface.co/collections/PeytonT/research-library-6a49c589ef4d763f7539b50d`
- GitHub repository: `https://github.com/peytontolbert/research_library`
- Experiment config: `https://github.com/peytontolbert/research_library/blob/main/models/experiments/p2_section_to_algorithm.json`
- Models directory: `https://github.com/peytontolbert/research_library/tree/main/models`

## Intended Use

- Primary use: Generates algorithmic descriptions from method or section-level paper text.
- Downstream use: retrieval, ranking, planning, paper understanding, or cross-domain reasoning inside the broader Repository Library system, depending on the model family.
- Out of scope: production safety claims, benchmark claims beyond the tracked experiment config, or deployment without task-specific validation.

## Training Data

The training inputs for this package were assembled from the following Repository Library data sources:

- Source `arxiv_pdfs_structured`: structured PDF shards containing text, equations, figures, and tables.

## Training Procedure

- Sources: `arxiv_pdfs_structured`
- Input fields: `methods_section`
- Target fields: `pseudo_code`
- Train/val/test split: `[0.9, 0.1, 0.0]`
- Max samples: `4000`
- Batch size: `2`
- Precision: `bf16`
- Objective: `cross_entropy`
- Learning rate: `5e-05`
- Max source tokens: `512`
- Max target tokens: `256`
- Fine-tune strategy: `peft_lora`
- Max steps: `1000`

## Compute

- Hardware: 4x RTX_3090 (24 GB)
- Distributed strategy: `ddp`
- Estimated GPU hours in config: `0`

## Evaluation

- Declared metrics: `perplexity`
- Status: this card reflects the current tracked experiment configuration and packaged weights in the Repository Library model stack.

## Usage

```python
from transformers import AutoModelForSeq2SeqLM, AutoTokenizer
from peft import PeftModel

repo_id = "PeytonT/section-to-algorithm"
base_id = "google/flan-t5-base"

tokenizer = AutoTokenizer.from_pretrained(repo_id)
base = AutoModelForSeq2SeqLM.from_pretrained(base_id)
model = PeftModel.from_pretrained(base, repo_id)
```

## Limitations

- These cards are generated from tracked experiment metadata and packaged artifacts, not from a separate benchmark report or external audit.
- Several training sources are pipeline outputs from the Repository Library codebase rather than standalone public datasets.
- These models are components of a larger research system and should be validated in their target workflow before deployment.

## Project Context

- GitHub repository: `https://github.com/peytontolbert/research_library`
- Model collection: `https://huggingface.co/collections/PeytonT/research-library-6a49c589ef4d763f7539b50d`
- Publisher: `PeytonT`