tapestry
Project Tapestry aims to give every nation and participant frontier AI they can call their own — uniting a global consortium to train a shared frontier model from which partners build and own sovereign models aligned to their national, socio-cultural, and industrial needs.
File Explorer
Download Latest Version (.zip)- bug_report.yaml
- code_change.yaml
- documentation_change.yaml
- generic_issue.yaml
- question.yaml
- new_contrib_pr.md
- update_docs_code_pr.md
- collect_metrics.py
- stamp_changelog.py
- changelog.yml
- ci.yml
- codeql.yml
- collect_metrics.yaml
- jekyll.yml
- spec.yml
- CODEOWNERS
- copilot-instructions.md
- dependabot.yml
- PULL_REQUEST_TEMPLATE.md
- stage2_train_dpo.py
- stage3_train_lire.py
- stage4_train_rlvf.py
- .custom.mk
- LICENSE
- README.md
- rl_build_preference_data.py
- rl_evaluation.py
- rl_generate_synthetic_data.py
- rl_train_dpo.py
- rl_train_ppo_nli.py
- rl_train_sft.py
- .custom.mk
- LICENSE
- README.md
- __init__.py
- experiment.py
- metrics.py
- test_experiment.py
- .custom.mk
- .targets.mk
- LICENSE
- README.md
- run.py
- __init__.py
- aggregation.py
- behavior.py
- capability.py
- corpora.py
- dataset.py
- experiment.py
- judge.py
- model.py
- safety.py
- stats.py
- wvs.py
- grounded.jsonl
- language_matched.jsonl
- manifest.json
- README.md
- README.md
- run_aggregation_on_instance.sh
- run_on_instance.sh
- run_two_gpu.sh
- test_corpus_build.py
- test_dataset.py
- test_guardrails.py
- test_smoke.py
- egypt.ar.json
- sweden.sv.json
- vietnam.vi.json
- .custom.mk
- .targets.mk
- fetch_corpus.py
- FINDINGS.md
- LITERATURE.md
- re_aggregate.py
- README.md
- run.py
- run_aggregation.py
- run_stats.py
- SPEC.md
- test_task.py
- __init__.py
- client_app.py
- server_app.py
- task.py
- .custom.mk
- grpcbench.py
- LICENSE
- patch_lookahead.py
- pyproject.toml
- README.md
- compliant.qnt
- compliant_test.qnt
- leaky.qnt
- shared.qnt
- .custom.mk
- LICENSE
- README.md
- __init__.py
- model_soup.py
- __init__.py
- base.py
- README.md
- __init__.py
- client.py
- jsonl_store.py
- load_topics.py
- question_gen.py
- synthesize.py
- __init__.py
- benchmark.py
- build_combined_v035.py
- build_concise_train_val.py
- clean_reasoning_all.py
- clean_reasoning_pilot_v3.py
- clean_reasoning_retry.py
- cli.py
- personas.py
- pipeline.py
- prompts.py
- run_answers.py
- run_questions.py
- swap_neutral.py
- __init__.py
- __init__.py
- decontam.py
- download.py
- extract.py
- sources.py
- __init__.py
- __init__.py
- _test_stage1.py
- cli.py
- format.py
- README.md
- spec.py
- coords.csv
- gpt_S1_gpt35.csv
- gpt_S2_gpt4.csv
- gpt_S3_gpt4turbo.csv
- gpt_S4_gpt4o.csv
- __init__.py
- coords_gpt4o.csv
- country_coords.json
- iso2tao.json
- iw_gen_nat.py
- iw_gen_tao.py
- iw_project.py
- iw_projection_final.json
- iw_score.py
- plot_iw10.py
- plot_soups345.py
- plot_sw05.py
- plot_sw09.py
- plot_tapestry.py
- plot_tapestry07.py
- plot_v3_sweep.py
- Prompts_Questions.csv
- Prompts_Respondent_Descriptors.csv
- s003.csv
- wvs_country_composites.json
- __init__.py
- api.py
- README.md
- zs_full_mmlu.py
- zs_full_mmlu_sweep.py
- iw_cultural_map.png
- test_consortium.py
- test_iw_projection.py
- dataset_download_and_generation_guide.md
- rehearsal_data_structure.json
- cultural_data_coverage_v2.json
- __init__.py
- chat_template.py
- Dockerfile
- merge_ckpt.py
- pack_data.py
- prepare_data.py
- README.md
- train_full.py
- train_rehearsal.py
- .custom.mk
- .env.example
- DATA.md
- LICENSE
- pyproject.toml
- README.md
- requirements.txt
- .custom.mk
- dataset-card-template.md
- evaluation-matrix.md
- LICENSE
- README.md
- release-gate-checklist.md
- README.md
- adr-001-core-plus-sovereign.md
- adr-002-consortium-training.md
- adr-003-cultural-alignment.md
- adr-004-training-loop.md
- adr-005-sovereign-pipeline.md
- adr-006-phased-base-model.md
- adr-007-architecture-comparison.md
- adr-008-data-sovereignty.md
- adr-009-goal-derived-base-model-selection.md
- adr-010-open-commons-sovereign-assets.md
- adr-011-central-node-infrastructure.md
- README.md
- chart.umd.min.js
- consortium-n-plus-1.svg
- consortium-training-loop.svg
- core-plus-sovereign-stack.svg
- cultural-alignment-framing.svg
- data-sovereignty-white-bkgd.png
- data-sovereignty-white-bkgd.svg
- data-sovereignty.drawio
- data-sovereignty.png
- data-sovereignty.svg
- inglehart-welzel-cultural-map-2023.png
- inglehart-welzel-interactive.html
- phased-base-model-strategy.svg
- README.md
- sovereign-model-pipeline.svg
- tao2024-gpt-cultural-map.jpg
- training-paradigms-comparison.svg
- 0-tva-methodology.md
- 1-stakeholder-map.md
- 2-pain-points.md
- 3-value-propositions.md
- 4-design-goals.md
- 5-architectural-options.md
- open-questions.md
- README.md
- anti-capture-principle.md
- README.md
- ARCHITECTURE.md
- glossary.md
- README.md
- training-approaches.md
- training-pipeline-data.md
- PRD.md
- README.md
- VISION.md
- base-model-selection.md
- fine-tuning-vietnam-june-2026.png
- olmo-datasets.png
- README.md
- state-of-open-weight-model-training.md
- training-toolkits.md
- data-governance-requirements.md
- data-management-requirements.md
- doclang-evaluation.md
- README.md
- README.md
- evaluation-gate-schema.md
- README.md
- tooling-options.md
- README.md
- infrastructure-requirements.md
- README.md
- README.md
- README.md
- README.md
- README.md
- consortium_training_demo.py
- LICENSE.Apache-2.0
- LICENSE.CC-BY-4.0
- LICENSE.CDLA-2.0
- __init__.py
- __init__.py
- gates.py
- __init__.py
- __init__.py
- coordinator.py
- merge.py
- messages.py
- model.py
- node.py
- policy.py
- README.md
- types.py
- __init__.py
- __init__.py
- __init__.py
- __init__.py
- test_gates.py
- __init__.py
- test_consortium_training.py
- __init__.py
- __init__.py
- __init__.py
- __init__.py
- custom.scss.liquid
- just-the-docs.scss.liquid
- custom.js
- anchor_headings.html
- fix_linenos.html
- footer_custom.html
- head.html
- head_custom.html
- header_buttons_custom.html
- header_custom.html
- mermaid_config.js
- nav.html
- title.html
- compress.html
- about.html
- default.html
- home.html
- page.html
- post.html
- redirect.html
- table_wrappers.html
- dark.scss
- light.scss
- custom.scss
- _buttons.scss
- _layout.scss
- _typography.scss
- mixins.scss
- _functions.scss
- _variables.scss
- support.scss
- _colors.scss
- _layout.scss
- _lists.scss
- _spacing.scss
- _typography.scss
- utilities.scss
- normalize.scss
- README.md
- base.scss
- buttons.scss
- code.scss
- content.scss
- labels.scss
- layout.scss
- modules.scss
- navigation.scss
- print.scss
- search.scss
- tables.scss
- typography.scss
- just-the-docs-dark.scss
- just-the-docs-default.scss
- just-the-docs-light.scss
- aia_symbol_main_color_24x24.png
- alliance-banner.png
- Logotype_monochrome_on_gradient.jpg
- 03-tapestry-logo-1000x545.png
- 03-tapestry-logo-1280x640.png
- 03-tapestry-logo-500x450.png
- 03-tapestry-logo-cropped-630x555.png
- 03-tapestry-logo-cropped-no-text.png
- 03-tapestry-logo-cropped.png
- 03-tapestry-logo-monochrome-1280x640.png
- 03-tapestry-logo-monochrome.png
- 03-tapestry-logo.png
- ai-alliance-icon-pos-blue-cmyk-trans.png
- ai-alliance-logo-horiz-pos-blue-cmyk-trans.png
- favicon-16x16.png
- favicon-32x32.png
- favicon.ico
- Gemini_Generated_Image_xvz2n6xvz2n6xvz2 - Edited.png
- just-the-docs.png
- search.svg
- Tapestry-Cube-Graphics.webp
- tapestry-pillars.jpg
- Yann-Lecun.png
- lunr.min.js
- just-the-docs.js
- zzzz-search-data.json
- .prettierignore
- .prettierrc
- .stylelintrc.json
- 404.html
- _config.yml
- about.markdown
- contributing.markdown
- index.markdown
- .common.mk
- .console-colors.mk
- .flake8
- .formal-spec.mk
- .gitignore
- .website.mk
- AGENTS.md
- CHANGELOG.md
- check-external-links.sh
- CONTRIBUTING.md
- Gemfile
- GITHUB_PAGES.md
- Makefile
- package-lock.json
- package.json
- pyproject.toml
- pyrightconfig.json
- README.md
- SECURITY.md
# Installation Guide
git clone https://github.com/The-AI-Alliance/tapestry
Downloads the entire project code from GitHub to your computer.
cd tapestry
Moves into the project folder you just downloaded.
2. Official Install Script
Easy Recommendedcurl -LsSf https://astral.sh/uv/install.sh | sh
Downloads and runs the official install script in one line — this handles the full setup automatically.
Pulled directly from this repo's README.
3. Docker
Easy- Git Needed to download the project code from GitHub.
- Docker Desktop Needed to build and run containers. Install it and keep it running in the background.
docker build -f contrib/nguyennm1024-sociocultural-alignment/training/Dockerfile -t tapestry .
Builds a runnable image based on the Dockerfile.
docker run -p 8080:80 tapestry
Runs the built image as an actual container.
4. Node.js
Easynpm install
Downloads and installs the libraries listed in package.json.
npm start
Starts the development/run server.
5. Python
Easyuv pip install -e ".[dev]" # full development dependencies
Installs the Python libraries listed in requirements.txt (or similar).
uv pip install -e . # minimum dependencies
Installs the Python libraries listed in requirements.txt (or similar).
Pulled directly from this repo's README.
6. Ruby
Easybundle install
Installs the Ruby libraries listed in the Gemfile.
7. Make
Medium- Git Needed to download the project code from GitHub.
- Make Usually pre-installed on Linux/macOS. On Windows, install separately (e.g. via MSYS2 or WSL).
make one-time-setup # Requires MacOS or Linux
Compiles the code based on the generated build configuration to produce an executable.
make unit-tests # tests is also defined as an alias for unit-tests.
Compiles the code based on the generated build configuration to produce an executable.
make format
Compiles the code based on the generated build configuration to produce an executable.
make lint
Compiles the code based on the generated build configuration to produce an executable.
make type-check
Compiles the code based on the generated build configuration to produce an executable.
Pulled directly from this repo's README.
