Ares Publisher commited on
Commit
d3b6dcc
·
1 Parent(s): 4450dd8

Add editable corpus manifest notebook

Browse files
datasets/manifest_v1.json ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name":"Ares-Corpus-Blueprint-v1",
3
+ "status":"design-only: no source is downloaded automatically",
4
+ "target_scale":{"tokens":"1T+ only after pilot quality/evaluation gates","characters":"not used as a training budget; tokens are the unit"},
5
+ "mixtures":[
6
+ {"name":"reference_and_education","target_percent":25,"purpose":"general knowledge and explanations","requirements":"licence, provenance, quality filter"},
7
+ {"name":"books_and_longform","target_percent":20,"purpose":"coherence and long context","requirements":"public-domain or explicitly licensed"},
8
+ {"name":"technical_and_code","target_percent":20,"purpose":"programming and technical reasoning","requirements":"per-file licence, repository allowlist, secrets/PII scan"},
9
+ {"name":"math_and_science","target_percent":15,"purpose":"symbolic reasoning and factual technical text","requirements":"source/solution separation; held-out test sets"},
10
+ {"name":"curated_dialogue_and_roleplay","target_percent":10,"purpose":"dialogue, character consistency, instruction following","requirements":"consented/created data, age label, no impersonation or private conversations"},
11
+ {"name":"multilingual","target_percent":10,"purpose":"language coverage","requirements":"language ID and per-language quality measurements"}
12
+ ],
13
+ "content_ratings":{"general":"default training pool; no graphic sexual/violent content","teen":"restricted, policy-reviewed mature themes; kept as labelled shard","adult":"not a default training source; requires legal, consent, policy, and access review; excludes sexual content involving minors and non-consensual/private material"},
14
+ "hard_exclusions":["sexual content involving minors","CSAM or exploitation material","credentials and secrets","doxxing/personal private data","non-consensual intimate material","malware payload collections","copyrighted data without an applicable right to use it"],
15
+ "quality_gates":["licence and provenance record","near-deduplication","PII/secrets filtering","language and quality scoring","document-level rating metadata","held-out contamination checks","dataset-card review and version hashes"],
16
+ "scale_gates":["10M-token pilot","1B-token clean-corpus run","10B+ token infrastructure/evaluation validation","1T+ proposal requires distributed compute budget, governance review, and reproducible data snapshots"]
17
+ }
notebooks/ares_corpus_manifest_editor.ipynb ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "nbformat": 4,
3
+ "nbformat_minor": 5,
4
+ "metadata": {
5
+ "colab": {
6
+ "name": "Ares_Corpus_Manifest_Editor.ipynb"
7
+ },
8
+ "kernelspec": {
9
+ "display_name": "Python 3",
10
+ "name": "python3"
11
+ },
12
+ "language_info": {
13
+ "name": "python"
14
+ }
15
+ },
16
+ "cells": [
17
+ {
18
+ "cell_type": "markdown",
19
+ "metadata": {},
20
+ "source": [
21
+ "# Ares corpus manifest editor\n",
22
+ "\n",
23
+ "Edit this manifest before any dataset acquisition or training. The file is a design document, not approval to download sources.\n"
24
+ ],
25
+ "execution_count": null,
26
+ "outputs": []
27
+ },
28
+ {
29
+ "cell_type": "code",
30
+ "metadata": {},
31
+ "source": [
32
+ "import json\n",
33
+ "from pathlib import Path\n",
34
+ "manifest = json.loads('{\\n \"name\":\"Ares-Corpus-Blueprint-v1\",\\n \"status\":\"design-only: no source is downloaded automatically\",\\n \"target_scale\":{\"tokens\":\"1T+ only after pilot quality/evaluation gates\",\"characters\":\"not used as a training budget; tokens are the unit\"},\\n \"mixtures\":[\\n {\"name\":\"reference_and_education\",\"target_percent\":25,\"purpose\":\"general knowledge and explanations\",\"requirements\":\"licence, provenance, quality filter\"},\\n {\"name\":\"books_and_longform\",\"target_percent\":20,\"purpose\":\"coherence and long context\",\"requirements\":\"public-domain or explicitly licensed\"},\\n {\"name\":\"technical_and_code\",\"target_percent\":20,\"purpose\":\"programming and technical reasoning\",\"requirements\":\"per-file licence, repository allowlist, secrets/PII scan\"},\\n {\"name\":\"math_and_science\",\"target_percent\":15,\"purpose\":\"symbolic reasoning and factual technical text\",\"requirements\":\"source/solution separation; held-out test sets\"},\\n {\"name\":\"curated_dialogue_and_roleplay\",\"target_percent\":10,\"purpose\":\"dialogue, character consistency, instruction following\",\"requirements\":\"consented/created data, age label, no impersonation or private conversations\"},\\n {\"name\":\"multilingual\",\"target_percent\":10,\"purpose\":\"language coverage\",\"requirements\":\"language ID and per-language quality measurements\"}\\n ],\\n \"content_ratings\":{\"general\":\"default training pool; no graphic sexual/violent content\",\"teen\":\"restricted, policy-reviewed mature themes; kept as labelled shard\",\"adult\":\"not a default training source; requires legal, consent, policy, and access review; excludes sexual content involving minors and non-consensual/private material\"},\\n \"hard_exclusions\":[\"sexual content involving minors\",\"CSAM or exploitation material\",\"credentials and secrets\",\"doxxing/personal private data\",\"non-consensual intimate material\",\"malware payload collections\",\"copyrighted data without an applicable right to use it\"],\\n \"quality_gates\":[\"licence and provenance record\",\"near-deduplication\",\"PII/secrets filtering\",\"language and quality scoring\",\"document-level rating metadata\",\"held-out contamination checks\",\"dataset-card review and version hashes\"],\\n \"scale_gates\":[\"10M-token pilot\",\"1B-token clean-corpus run\",\"10B+ token infrastructure/evaluation validation\",\"1T+ proposal requires distributed compute budget, governance review, and reproducible data snapshots\"]\\n}\\n')\n",
35
+ "manifest\n"
36
+ ],
37
+ "execution_count": null,
38
+ "outputs": []
39
+ },
40
+ {
41
+ "cell_type": "markdown",
42
+ "metadata": {},
43
+ "source": [
44
+ "## Edit the Python object above\n",
45
+ "\n",
46
+ "Change dataset categories, source records, ratings, exclusions, licences, and scale gates. Do not remove hard exclusions for illegal, exploitative, private, or unlicensed data.\n"
47
+ ],
48
+ "execution_count": null,
49
+ "outputs": []
50
+ },
51
+ {
52
+ "cell_type": "code",
53
+ "metadata": {},
54
+ "source": [
55
+ "# When your edits are complete, save a local manifest for the training project.\n",
56
+ "Path('datasets').mkdir(exist_ok=True)\n",
57
+ "Path('datasets/manifest_v1.json').write_text(json.dumps(manifest, indent=2) + '\\n')\n",
58
+ "print(Path('datasets/manifest_v1.json').resolve())\n"
59
+ ],
60
+ "execution_count": null,
61
+ "outputs": []
62
+ },
63
+ {
64
+ "cell_type": "code",
65
+ "metadata": {},
66
+ "source": [
67
+ "# Display the final edited JSON for review before any pipeline run.\n",
68
+ "print(json.dumps(manifest, indent=2))\n"
69
+ ],
70
+ "execution_count": null,
71
+ "outputs": []
72
+ }
73
+ ]
74
+ }
notebooks/ares_general_20m_colab.ipynb CHANGED
@@ -38,6 +38,18 @@
38
  "execution_count": null,
39
  "outputs": []
40
  },
 
 
 
 
 
 
 
 
 
 
 
 
41
  {
42
  "cell_type": "code",
43
  "metadata": {},
 
38
  "execution_count": null,
39
  "outputs": []
40
  },
41
+ {
42
+ "cell_type": "code",
43
+ "metadata": {},
44
+ "source": [
45
+ "# Read and edit the corpus design manifest before selecting any sources.\n",
46
+ "import json\n",
47
+ "manifest=json.load(open('datasets/manifest_v1.json'))\n",
48
+ "print(json.dumps(manifest,indent=2))\n"
49
+ ],
50
+ "execution_count": null,
51
+ "outputs": []
52
+ },
53
  {
54
  "cell_type": "code",
55
  "metadata": {},