Datasets:
Rename v2 selection assets folders to metadata
Browse filesMove eight selection manifests to metadata and update reproduction scripts and README references.
- bugsinpy_v2/README.md +1 -1
- bugsinpy_v2/{assets → metadata}/selection.json +0 -0
- bugsinpy_v2/patch.py +2 -2
- calibforge_v2/README.md +1 -1
- calibforge_v2/{assets → metadata}/selection.json +0 -0
- calibforge_v2/patch.py +1 -1
- crosscodeeval_v2/README.md +1 -1
- crosscodeeval_v2/{assets → metadata}/selection.json +0 -0
- crosscodeeval_v2/patch.py +2 -2
- endless_v2/README.md +1 -1
- endless_v2/{assets → metadata}/selection.json +0 -0
- endless_v2/patch.py +1 -1
- scaleswe_v2/README.md +1 -1
- scaleswe_v2/{assets → metadata}/selection.json +0 -0
- scaleswe_v2/patch.py +1 -1
- seta_v2/README.md +1 -1
- seta_v2/{assets → metadata}/selection.json +0 -0
- seta_v2/patch.py +1 -1
- swelego_v2/README.md +1 -1
- swelego_v2/{assets → metadata}/selection.json +0 -0
- swelego_v2/patch.py +1 -1
- termigen_v2/README.md +1 -1
- termigen_v2/{assets → metadata}/selection.json +0 -0
- termigen_v2/patch.py +1 -1
bugsinpy_v2/README.md
CHANGED
|
@@ -58,7 +58,7 @@ The kept tasks inherit v1's rule-based repairs, build checks, reference reward 1
|
|
| 58 |
|
| 59 |
## Select tasks by successful-attempt count
|
| 60 |
|
| 61 |
-
`tasks.parquet` includes `instruct_successes`, `thinking_successes` and `attempts_per_model` (16). Counts are also available in [selection.json](
|
| 62 |
|
| 63 |
```python
|
| 64 |
import pyarrow.parquet as pq
|
|
|
|
| 58 |
|
| 59 |
## Select tasks by successful-attempt count
|
| 60 |
|
| 61 |
+
`tasks.parquet` includes `instruct_successes`, `thinking_successes` and `attempts_per_model` (16). Counts are also available in [selection.json](metadata/selection.json). Excluded payloads remain in the pinned v1 source recorded in `selection.json`; no duplicate archive Parquet is uploaded.
|
| 62 |
|
| 63 |
```python
|
| 64 |
import pyarrow.parquet as pq
|
bugsinpy_v2/{assets → metadata}/selection.json
RENAMED
|
File without changes
|
bugsinpy_v2/patch.py
CHANGED
|
@@ -54,7 +54,7 @@ def build(source_dir, out, selection_path):
|
|
| 54 |
images = restrict_images(image_manifest, kept)
|
| 55 |
assert set(images['tasks']) == kept
|
| 56 |
release = {k: v for k, v in selection.items() if k != 'tasks'}
|
| 57 |
-
release['selection_file'] = '
|
| 58 |
metadata = {b'ot.release.v2': json.dumps(release).encode(), b'ot.images.v1': json.dumps(images).encode()}
|
| 59 |
schema = original_schema.remove_metadata().append(pa.field('instruct_successes', pa.int64())).append(
|
| 60 |
pa.field('thinking_successes', pa.int64())).append(pa.field('attempts_per_model', pa.int64()))
|
|
@@ -116,7 +116,7 @@ if __name__ == '__main__':
|
|
| 116 |
parser = argparse.ArgumentParser(description=__doc__)
|
| 117 |
parser.add_argument('--source-dir', type=Path)
|
| 118 |
parser.add_argument('--out', type=Path, required=True)
|
| 119 |
-
parser.add_argument('--selection', type=Path, default=Path(__file__).parent / '
|
| 120 |
parser.add_argument('--include-archive', action='store_true', help='Also reconstruct excluded payloads locally')
|
| 121 |
args = parser.parse_args()
|
| 122 |
build(args.source_dir, args.out, args.selection)
|
|
|
|
| 54 |
images = restrict_images(image_manifest, kept)
|
| 55 |
assert set(images['tasks']) == kept
|
| 56 |
release = {k: v for k, v in selection.items() if k != 'tasks'}
|
| 57 |
+
release['selection_file'] = 'metadata/selection.json'
|
| 58 |
metadata = {b'ot.release.v2': json.dumps(release).encode(), b'ot.images.v1': json.dumps(images).encode()}
|
| 59 |
schema = original_schema.remove_metadata().append(pa.field('instruct_successes', pa.int64())).append(
|
| 60 |
pa.field('thinking_successes', pa.int64())).append(pa.field('attempts_per_model', pa.int64()))
|
|
|
|
| 116 |
parser = argparse.ArgumentParser(description=__doc__)
|
| 117 |
parser.add_argument('--source-dir', type=Path)
|
| 118 |
parser.add_argument('--out', type=Path, required=True)
|
| 119 |
+
parser.add_argument('--selection', type=Path, default=Path(__file__).parent / 'metadata' / 'selection.json')
|
| 120 |
parser.add_argument('--include-archive', action='store_true', help='Also reconstruct excluded payloads locally')
|
| 121 |
args = parser.parse_args()
|
| 122 |
build(args.source_dir, args.out, args.selection)
|
calibforge_v2/README.md
CHANGED
|
@@ -56,7 +56,7 @@ Observed counts from up to eight attempts, not complete pass@8 estimates.
|
|
| 56 |
|
| 57 |
## Files and selecting tasks
|
| 58 |
|
| 59 |
-
`tasks.parquet` contains kept payloads, `instruct_successes`, `instruct_graded_attempts`, `instruct_missing_attempts` and `target_attempts_per_model` (8). `
|
| 60 |
|
| 61 |
```python
|
| 62 |
import pyarrow.parquet as pq
|
|
|
|
| 56 |
|
| 57 |
## Files and selecting tasks
|
| 58 |
|
| 59 |
+
`tasks.parquet` contains kept payloads, `instruct_successes`, `instruct_graded_attempts`, `instruct_missing_attempts` and `target_attempts_per_model` (8). `metadata/selection.json` records all task statuses, attempt IDs, rewards and the pinned v1 source. Excluded payloads remain in v1; no duplicate archive Parquet is uploaded. `patch.py` reproduces this snapshot.
|
| 60 |
|
| 61 |
```python
|
| 62 |
import pyarrow.parquet as pq
|
calibforge_v2/{assets → metadata}/selection.json
RENAMED
|
File without changes
|
calibforge_v2/patch.py
CHANGED
|
@@ -5,7 +5,7 @@ import pyarrow as pa,pyarrow.parquet as pq
|
|
| 5 |
from huggingface_hub import hf_hub_download
|
| 6 |
p=argparse.ArgumentParser(description=__doc__);p.add_argument('--out',type=Path,required=True);p.add_argument('--source',type=Path);a=p.parse_args();a.out.mkdir(parents=True,exist_ok=True)
|
| 7 |
assert not (a.out/'tasks.parquet').exists()
|
| 8 |
-
m=json.loads((Path(__file__).parent/'
|
| 9 |
src=pq.ParquetFile(f);schema=src.schema_arrow.remove_metadata()
|
| 10 |
for name in ['instruct_successes','instruct_graded_attempts','instruct_missing_attempts','target_attempts_per_model']:schema=schema.append(pa.field(name,pa.int64()))
|
| 11 |
rows=[]
|
|
|
|
| 5 |
from huggingface_hub import hf_hub_download
|
| 6 |
p=argparse.ArgumentParser(description=__doc__);p.add_argument('--out',type=Path,required=True);p.add_argument('--source',type=Path);a=p.parse_args();a.out.mkdir(parents=True,exist_ok=True)
|
| 7 |
assert not (a.out/'tasks.parquet').exists()
|
| 8 |
+
m=json.loads((Path(__file__).parent/'metadata/selection.json').read_text());f=a.source or Path(hf_hub_download(m['repo_id'],m['source_folder']+'/tasks.parquet',revision=m['source_revision'],repo_type='dataset',cache_dir=a.out/'.source-cache'));assert hashlib.sha256(f.read_bytes()).hexdigest()==m['source_sha256']
|
| 9 |
src=pq.ParquetFile(f);schema=src.schema_arrow.remove_metadata()
|
| 10 |
for name in ['instruct_successes','instruct_graded_attempts','instruct_missing_attempts','target_attempts_per_model']:schema=schema.append(pa.field(name,pa.int64()))
|
| 11 |
rows=[]
|
crosscodeeval_v2/README.md
CHANGED
|
@@ -60,7 +60,7 @@ The kept tasks inherit v1's rule-based repairs, build checks, reference reward 1
|
|
| 60 |
|
| 61 |
## Select tasks by successful-attempt count
|
| 62 |
|
| 63 |
-
`tasks.parquet` includes `instruct_successes`, `thinking_successes` and `attempts_per_model` (16). Counts are also available in [selection.json](
|
| 64 |
|
| 65 |
```python
|
| 66 |
import pyarrow.parquet as pq
|
|
|
|
| 60 |
|
| 61 |
## Select tasks by successful-attempt count
|
| 62 |
|
| 63 |
+
`tasks.parquet` includes `instruct_successes`, `thinking_successes` and `attempts_per_model` (16). Counts are also available in [selection.json](metadata/selection.json). Excluded payloads remain in the pinned v1 source recorded in `selection.json`; no duplicate archive Parquet is uploaded.
|
| 64 |
|
| 65 |
```python
|
| 66 |
import pyarrow.parquet as pq
|
crosscodeeval_v2/{assets → metadata}/selection.json
RENAMED
|
File without changes
|
crosscodeeval_v2/patch.py
CHANGED
|
@@ -56,7 +56,7 @@ def build(source_dir, out, selection_path):
|
|
| 56 |
images = restrict_images(image_manifest, kept)
|
| 57 |
assert set(images['tasks']) == kept
|
| 58 |
release = {k: v for k, v in selection.items() if k != 'tasks'}
|
| 59 |
-
release['selection_file'] = '
|
| 60 |
metadata = {b'ot.release.v2': json.dumps(release).encode(), b'ot.images.v1': json.dumps(images).encode()}
|
| 61 |
schema = original_schema.remove_metadata().append(pa.field('instruct_successes', pa.int64())).append(
|
| 62 |
pa.field('thinking_successes', pa.int64())).append(pa.field('attempts_per_model', pa.int64())).append(pa.field('archive_category', pa.string()))
|
|
@@ -131,7 +131,7 @@ if __name__ == '__main__':
|
|
| 131 |
parser = argparse.ArgumentParser(description=__doc__)
|
| 132 |
parser.add_argument('--source-dir', type=Path)
|
| 133 |
parser.add_argument('--out', type=Path, required=True)
|
| 134 |
-
parser.add_argument('--selection', type=Path, default=Path(__file__).parent / '
|
| 135 |
parser.add_argument('--include-archive', action='store_true', help='Also reconstruct excluded payloads locally')
|
| 136 |
args = parser.parse_args()
|
| 137 |
build(args.source_dir, args.out, args.selection)
|
|
|
|
| 56 |
images = restrict_images(image_manifest, kept)
|
| 57 |
assert set(images['tasks']) == kept
|
| 58 |
release = {k: v for k, v in selection.items() if k != 'tasks'}
|
| 59 |
+
release['selection_file'] = 'metadata/selection.json'
|
| 60 |
metadata = {b'ot.release.v2': json.dumps(release).encode(), b'ot.images.v1': json.dumps(images).encode()}
|
| 61 |
schema = original_schema.remove_metadata().append(pa.field('instruct_successes', pa.int64())).append(
|
| 62 |
pa.field('thinking_successes', pa.int64())).append(pa.field('attempts_per_model', pa.int64())).append(pa.field('archive_category', pa.string()))
|
|
|
|
| 131 |
parser = argparse.ArgumentParser(description=__doc__)
|
| 132 |
parser.add_argument('--source-dir', type=Path)
|
| 133 |
parser.add_argument('--out', type=Path, required=True)
|
| 134 |
+
parser.add_argument('--selection', type=Path, default=Path(__file__).parent / 'metadata' / 'selection.json')
|
| 135 |
parser.add_argument('--include-archive', action='store_true', help='Also reconstruct excluded payloads locally')
|
| 136 |
args = parser.parse_args()
|
| 137 |
build(args.source_dir, args.out, args.selection)
|
endless_v2/README.md
CHANGED
|
@@ -46,7 +46,7 @@ path = hf_hub_download("FWeindel/validated-tasks", "endless_v2/tasks.parquet", r
|
|
| 46 |
tasks = pq.read_table(path, filters=[("instruct_successes", ">=", 1), ("instruct_successes", "<=", 2)])
|
| 47 |
```
|
| 48 |
|
| 49 |
-
`
|
| 50 |
|
| 51 |
## Traces
|
| 52 |
|
|
|
|
| 46 |
tasks = pq.read_table(path, filters=[("instruct_successes", ">=", 1), ("instruct_successes", "<=", 2)])
|
| 47 |
```
|
| 48 |
|
| 49 |
+
`metadata/selection.json` records all v1 task decisions and counts. `patch.py` reproduces the task Parquet from pinned v1 data. `instruct_graded_attempts` counts attempts assigned a filtering score, including terminal failures.
|
| 50 |
|
| 51 |
## Traces
|
| 52 |
|
endless_v2/{assets → metadata}/selection.json
RENAMED
|
File without changes
|
endless_v2/patch.py
CHANGED
|
@@ -5,7 +5,7 @@ import pyarrow as pa,pyarrow.parquet as pq
|
|
| 5 |
from huggingface_hub import hf_hub_download
|
| 6 |
p=argparse.ArgumentParser(description=__doc__);p.add_argument('--out',type=Path,required=True);p.add_argument('--source',type=Path);a=p.parse_args();a.out.mkdir(parents=True,exist_ok=True)
|
| 7 |
assert not (a.out/'tasks.parquet').exists()
|
| 8 |
-
m=json.loads((Path(__file__).parent/'
|
| 9 |
src=pq.ParquetFile(f);schema=src.schema_arrow.remove_metadata();columns=[model+'_'+metric for model in m['models'] for metric in ['successes','graded_attempts','missing_attempts']]
|
| 10 |
for name in columns+['target_attempts_per_model']:schema=schema.append(pa.field(name,pa.int64()))
|
| 11 |
rows=[]
|
|
|
|
| 5 |
from huggingface_hub import hf_hub_download
|
| 6 |
p=argparse.ArgumentParser(description=__doc__);p.add_argument('--out',type=Path,required=True);p.add_argument('--source',type=Path);a=p.parse_args();a.out.mkdir(parents=True,exist_ok=True)
|
| 7 |
assert not (a.out/'tasks.parquet').exists()
|
| 8 |
+
m=json.loads((Path(__file__).parent/'metadata/selection.json').read_text());f=a.source or Path(hf_hub_download(m['repo_id'],m['source_folder']+'/tasks.parquet',revision=m['source_revision'],repo_type='dataset',cache_dir=a.out/'.source-cache'));assert hashlib.sha256(f.read_bytes()).hexdigest()==m['source_sha256']
|
| 9 |
src=pq.ParquetFile(f);schema=src.schema_arrow.remove_metadata();columns=[model+'_'+metric for model in m['models'] for metric in ['successes','graded_attempts','missing_attempts']]
|
| 10 |
for name in columns+['target_attempts_per_model']:schema=schema.append(pa.field(name,pa.int64()))
|
| 11 |
rows=[]
|
scaleswe_v2/README.md
CHANGED
|
@@ -56,7 +56,7 @@ path = hf_hub_download("FWeindel/validated-tasks", "scaleswe_v2/tasks.parquet",
|
|
| 56 |
tasks = pq.read_table(path, filters=[("instruct_successes", ">=", 1), ("instruct_successes", "<=", 2)])
|
| 57 |
```
|
| 58 |
|
| 59 |
-
`
|
| 60 |
|
| 61 |
## Resources
|
| 62 |
|
|
|
|
| 56 |
tasks = pq.read_table(path, filters=[("instruct_successes", ">=", 1), ("instruct_successes", "<=", 2)])
|
| 57 |
```
|
| 58 |
|
| 59 |
+
`metadata/selection.json` records every v1 task's snapshot results and retention decision. `patch.py` reproduces the task Parquet from pinned v1 data.
|
| 60 |
|
| 61 |
## Resources
|
| 62 |
|
scaleswe_v2/{assets → metadata}/selection.json
RENAMED
|
File without changes
|
scaleswe_v2/patch.py
CHANGED
|
@@ -5,7 +5,7 @@ import pyarrow as pa,pyarrow.parquet as pq
|
|
| 5 |
from huggingface_hub import hf_hub_download
|
| 6 |
p=argparse.ArgumentParser(description=__doc__);p.add_argument('--out',type=Path,required=True);p.add_argument('--source',type=Path);a=p.parse_args();a.out.mkdir(parents=True,exist_ok=True)
|
| 7 |
assert not (a.out/'tasks.parquet').exists()
|
| 8 |
-
m=json.loads((Path(__file__).parent/'
|
| 9 |
src=pq.ParquetFile(f);schema=src.schema_arrow.remove_metadata();columns=[model+'_'+metric for model in m['models'] for metric in ['successes','graded_attempts','missing_attempts']]
|
| 10 |
for name in columns+['target_attempts_per_model']:schema=schema.append(pa.field(name,pa.int64()))
|
| 11 |
rows=[]
|
|
|
|
| 5 |
from huggingface_hub import hf_hub_download
|
| 6 |
p=argparse.ArgumentParser(description=__doc__);p.add_argument('--out',type=Path,required=True);p.add_argument('--source',type=Path);a=p.parse_args();a.out.mkdir(parents=True,exist_ok=True)
|
| 7 |
assert not (a.out/'tasks.parquet').exists()
|
| 8 |
+
m=json.loads((Path(__file__).parent/'metadata/selection.json').read_text());f=a.source or Path(hf_hub_download(m['repo_id'],m['source_folder']+'/tasks.parquet',revision=m['source_revision'],repo_type='dataset',cache_dir=a.out/'.source-cache'));assert hashlib.sha256(f.read_bytes()).hexdigest()==m['source_sha256']
|
| 9 |
src=pq.ParquetFile(f);schema=src.schema_arrow.remove_metadata();columns=[model+'_'+metric for model in m['models'] for metric in ['successes','graded_attempts','missing_attempts']]
|
| 10 |
for name in columns+['target_attempts_per_model']:schema=schema.append(pa.field(name,pa.int64()))
|
| 11 |
rows=[]
|
seta_v2/README.md
CHANGED
|
@@ -67,7 +67,7 @@ These are observed success counts from up to 16 attempts per model, not complete
|
|
| 67 |
|
| 68 |
## Files and selecting tasks
|
| 69 |
|
| 70 |
-
`tasks.parquet` contains kept payloads and each model's successes, graded attempts and missing attempts. `
|
| 71 |
|
| 72 |
```python
|
| 73 |
import pyarrow.parquet as pq
|
|
|
|
| 67 |
|
| 68 |
## Files and selecting tasks
|
| 69 |
|
| 70 |
+
`tasks.parquet` contains kept payloads and each model's successes, graded attempts and missing attempts. `metadata/selection.json` records every v1 task's results, selection reason and the pinned v1 revision. Excluded payloads remain in v1; no duplicate archive Parquet is uploaded. `patch.py` reproduces this snapshot.
|
| 71 |
|
| 72 |
```python
|
| 73 |
import pyarrow.parquet as pq
|
seta_v2/{assets → metadata}/selection.json
RENAMED
|
File without changes
|
seta_v2/patch.py
CHANGED
|
@@ -5,7 +5,7 @@ import pyarrow as pa
|
|
| 5 |
import pyarrow.parquet as pq
|
| 6 |
from huggingface_hub import hf_hub_download
|
| 7 |
p=argparse.ArgumentParser(description=__doc__);p.add_argument('--out',type=Path,required=True);p.add_argument('--source',type=Path);a=p.parse_args()
|
| 8 |
-
m=json.loads((Path(__file__).parent/'
|
| 9 |
assert not (a.out/'tasks.parquet').exists(),'Choose an empty output directory'
|
| 10 |
f=a.source or Path(hf_hub_download(m['repo_id'],m['source_folder']+'/tasks.parquet',revision=m['source_revision'],repo_type='dataset',cache_dir=a.out/'.source-cache'))
|
| 11 |
assert hashlib.sha256(f.read_bytes()).hexdigest()==m['source_sha256']
|
|
|
|
| 5 |
import pyarrow.parquet as pq
|
| 6 |
from huggingface_hub import hf_hub_download
|
| 7 |
p=argparse.ArgumentParser(description=__doc__);p.add_argument('--out',type=Path,required=True);p.add_argument('--source',type=Path);a=p.parse_args()
|
| 8 |
+
m=json.loads((Path(__file__).parent/'metadata/selection.json').read_text());a.out.mkdir(parents=True,exist_ok=True)
|
| 9 |
assert not (a.out/'tasks.parquet').exists(),'Choose an empty output directory'
|
| 10 |
f=a.source or Path(hf_hub_download(m['repo_id'],m['source_folder']+'/tasks.parquet',revision=m['source_revision'],repo_type='dataset',cache_dir=a.out/'.source-cache'))
|
| 11 |
assert hashlib.sha256(f.read_bytes()).hexdigest()==m['source_sha256']
|
swelego_v2/README.md
CHANGED
|
@@ -50,7 +50,7 @@ path = hf_hub_download("FWeindel/validated-tasks", "swelego_v2/tasks.parquet", r
|
|
| 50 |
tasks = pq.read_table(path, filters=[("instruct_successes", ">=", 1), ("instruct_successes", "<=", 2)])
|
| 51 |
```
|
| 52 |
|
| 53 |
-
`
|
| 54 |
|
| 55 |
## Resources
|
| 56 |
|
|
|
|
| 50 |
tasks = pq.read_table(path, filters=[("instruct_successes", ">=", 1), ("instruct_successes", "<=", 2)])
|
| 51 |
```
|
| 52 |
|
| 53 |
+
`metadata/selection.json` records every v1 task's snapshot results and retention decision. `patch.py` reproduces the task Parquet from pinned v1 data.
|
| 54 |
|
| 55 |
## Resources
|
| 56 |
|
swelego_v2/{assets → metadata}/selection.json
RENAMED
|
File without changes
|
swelego_v2/patch.py
CHANGED
|
@@ -5,7 +5,7 @@ import pyarrow as pa,pyarrow.parquet as pq
|
|
| 5 |
from huggingface_hub import hf_hub_download
|
| 6 |
p=argparse.ArgumentParser(description=__doc__);p.add_argument('--out',type=Path,required=True);p.add_argument('--source',type=Path);a=p.parse_args();a.out.mkdir(parents=True,exist_ok=True)
|
| 7 |
assert not (a.out/'tasks.parquet').exists()
|
| 8 |
-
m=json.loads((Path(__file__).parent/'
|
| 9 |
src=pq.ParquetFile(f);schema=src.schema_arrow.remove_metadata();columns=[model+'_'+metric for model in m['models'] for metric in ['successes','graded_attempts','missing_attempts']]
|
| 10 |
for name in columns+['target_attempts_per_model']:schema=schema.append(pa.field(name,pa.int64()))
|
| 11 |
rows=[]
|
|
|
|
| 5 |
from huggingface_hub import hf_hub_download
|
| 6 |
p=argparse.ArgumentParser(description=__doc__);p.add_argument('--out',type=Path,required=True);p.add_argument('--source',type=Path);a=p.parse_args();a.out.mkdir(parents=True,exist_ok=True)
|
| 7 |
assert not (a.out/'tasks.parquet').exists()
|
| 8 |
+
m=json.loads((Path(__file__).parent/'metadata/selection.json').read_text());f=a.source or Path(hf_hub_download(m['repo_id'],m['source_folder']+'/tasks.parquet',revision=m['source_revision'],repo_type='dataset',cache_dir=a.out/'.source-cache'));assert hashlib.sha256(f.read_bytes()).hexdigest()==m['source_sha256']
|
| 9 |
src=pq.ParquetFile(f);schema=src.schema_arrow.remove_metadata();columns=[model+'_'+metric for model in m['models'] for metric in ['successes','graded_attempts','missing_attempts']]
|
| 10 |
for name in columns+['target_attempts_per_model']:schema=schema.append(pa.field(name,pa.int64()))
|
| 11 |
rows=[]
|
termigen_v2/README.md
CHANGED
|
@@ -50,7 +50,7 @@ Per-task Coder evidence establishes whether a task was solved; exact per-task su
|
|
| 50 |
|
| 51 |
## Files and selecting tasks
|
| 52 |
|
| 53 |
-
`tasks.parquet` contains kept tasks, `coder_solved`, `instruct_successes`, `instruct_missing_rewards` and `attempts_per_model`. `
|
| 54 |
|
| 55 |
```python
|
| 56 |
import pyarrow.parquet as pq
|
|
|
|
| 50 |
|
| 51 |
## Files and selecting tasks
|
| 52 |
|
| 53 |
+
`tasks.parquet` contains kept tasks, `coder_solved`, `instruct_successes`, `instruct_missing_rewards` and `attempts_per_model`. `metadata/selection.json` records every v1 task's selection and pins the source revision. Excluded payloads remain in that v1 revision; no duplicate archive Parquet is uploaded. `patch.py` reproduces this selection.
|
| 54 |
|
| 55 |
```python
|
| 56 |
import pyarrow.parquet as pq
|
termigen_v2/{assets → metadata}/selection.json
RENAMED
|
File without changes
|
termigen_v2/patch.py
CHANGED
|
@@ -8,7 +8,7 @@ p=argparse.ArgumentParser(description=__doc__)
|
|
| 8 |
p.add_argument('--out',type=Path,required=True)
|
| 9 |
p.add_argument('--source',type=Path)
|
| 10 |
a=p.parse_args()
|
| 11 |
-
m=json.loads((Path(__file__).parent/'
|
| 12 |
a.out.mkdir(parents=True,exist_ok=True)
|
| 13 |
f=a.source or Path(hf_hub_download(m['repo_id'],m['source_folder']+'/tasks.parquet',revision=m['source_revision'],repo_type='dataset',cache_dir=a.out/'.source-cache'))
|
| 14 |
assert hashlib.sha256(f.read_bytes()).hexdigest()==m['source_sha256']
|
|
|
|
| 8 |
p.add_argument('--out',type=Path,required=True)
|
| 9 |
p.add_argument('--source',type=Path)
|
| 10 |
a=p.parse_args()
|
| 11 |
+
m=json.loads((Path(__file__).parent/'metadata/selection.json').read_text())
|
| 12 |
a.out.mkdir(parents=True,exist_ok=True)
|
| 13 |
f=a.source or Path(hf_hub_download(m['repo_id'],m['source_folder']+'/tasks.parquet',revision=m['source_revision'],repo_type='dataset',cache_dir=a.out/'.source-cache'))
|
| 14 |
assert hashlib.sha256(f.read_bytes()).hexdigest()==m['source_sha256']
|