├── .coveragerc ├── .github ├── ISSUE_TEMPLATE │ ├── bug.md │ ├── enhancement.md │ ├── question.md │ └── regression.md └── workflows │ └── stale.yml ├── .gitignore ├── .gitlab-ci.yml ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── README_ZH.md ├── docs ├── distrib_optimizer.md └── images │ └── distrib_optimizer │ ├── data_flow.png │ └── sharding_scheme.png ├── examples ├── detxoify_lm │ ├── README.md │ ├── annotations │ │ ├── filter-selfgeneration.py │ │ ├── perspective_api_annotate.py │ │ └── preprocess.sh │ ├── finetune_gpt.py │ ├── finetune_gpt_distributed-1.3b.sh │ ├── generate-1.3b.sh │ ├── generate_samples_gpt.py │ ├── perspective_api.py │ └── self_generation │ │ └── selfgenerate-1.3b-unconditional.sh ├── evaluate_retriever_nq.sh ├── evaluate_zeroshot_gpt.sh ├── finetune_mnli_distributed.sh ├── finetune_race_distributed.sh ├── finetune_retriever_distributed.sh ├── merge_mp_bert.sh ├── msdp │ ├── README.md │ ├── data_processing.sh │ ├── eval_knwl_generation.sh │ ├── eval_resp_generation.sh │ ├── prep_resp_gen.sh │ ├── prompt_knwl_gen.sh │ └── prompt_resp_gen.sh ├── pretrain_bert.sh ├── pretrain_bert_distributed.sh ├── pretrain_bert_distributed_with_mp.sh ├── pretrain_gpt.sh ├── pretrain_gpt3_175B.sh ├── pretrain_gpt_distributed.sh ├── pretrain_gpt_distributed_with_mp.sh ├── pretrain_ict.sh ├── pretrain_t5.sh ├── pretrain_t5_distributed.sh ├── pretrain_t5_distributed_with_mp.sh ├── run_text_generation_server_345M.sh ├── run_text_generation_server_345M_8_tensor_parallel.sh └── sc21 │ ├── CONFIG.sh │ ├── README.md │ ├── SBATCH.sh │ ├── SRUN.sh │ ├── run_figure_11.sh │ ├── run_figure_12.sh │ ├── run_figure_13.sh │ ├── run_figure_14.sh │ ├── run_figure_15.sh │ ├── run_figure_16.sh │ ├── run_figure_17.sh │ ├── run_figure_18.sh │ └── run_table_1.sh ├── exp.sh ├── images ├── Achieved_petaFLOPs.png └── cases_april2021.png ├── megatron ├── __init__.py ├── arguments.py ├── checkpointing.py ├── core │ ├── README.md │ ├── __init__.py │ ├── dist_checkpointing │ │ ├── __init__.py │ │ ├── core.py │ │ ├── dict_utils.py │ │ ├── mapping.py │ │ ├── optimizer.py │ │ ├── serialization.py │ │ ├── strategies │ │ │ ├── __init__.py │ │ │ ├── base.py │ │ │ ├── tensorstore.py │ │ │ ├── two_stage.py │ │ │ └── zarr.py │ │ └── utils.py │ ├── enums.py │ ├── fusions │ │ ├── __init__.py │ │ ├── fused_bias_dropout.py │ │ ├── fused_bias_gelu.py │ │ ├── fused_layer_norm.py │ │ └── fused_softmax.py │ ├── inference_params.py │ ├── model_parallel_config.py │ ├── models │ │ ├── __init__.py │ │ ├── common │ │ │ └── rotary_pos_embedding.py │ │ └── gpt │ │ │ ├── __init__.py │ │ │ ├── gpt_embedding.py │ │ │ └── gpt_model.py │ ├── package_info.py │ ├── parallel_state.py │ ├── pipeline_parallel │ │ ├── __init__.py │ │ ├── p2p_communication.py │ │ ├── schedules.py │ │ ├── sp_utils.py │ │ └── split_solver.py │ ├── requirements.txt │ ├── tensor_parallel │ │ ├── __init__.py │ │ ├── cross_entropy.py │ │ ├── data.py │ │ ├── layers.py │ │ ├── mappings.py │ │ ├── random.py │ │ └── utils.py │ ├── transformer │ │ ├── __init__.py │ │ ├── attention.py │ │ ├── custom_layers │ │ │ └── transformer_engine.py │ │ ├── dot_product_attention.py │ │ ├── enums.py │ │ ├── identity_op.py │ │ ├── mlp.py │ │ ├── module.py │ │ ├── transformer_block.py │ │ ├── transformer_config.py │ │ ├── transformer_layer.py │ │ └── utils.py │ └── utils.py ├── data │ ├── Makefile │ ├── __init__.py │ ├── autoaugment.py │ ├── bert_dataset.py │ ├── biencoder_dataset_utils.py │ ├── blendable_dataset.py │ ├── data_samplers.py │ ├── dataset_utils.py │ ├── gpt_dataset.py │ ├── helpers.cpp │ ├── ict_dataset.py │ ├── image_folder.py │ ├── indexed_dataset.py │ ├── multimodal_dataset.py │ ├── orqa_wiki_dataset.py │ ├── realm_dataset_utils.py │ ├── realm_index.py │ ├── t5_dataset.py │ ├── test │ │ ├── test_indexed_dataset.py │ │ └── test_preprocess_data.sh │ └── vit_dataset.py ├── dist_signal_handler.py ├── fp16_deprecated │ └── loss_scaler.py ├── fused_kernels │ ├── __init__.py │ ├── compat.h │ ├── tests │ │ ├── __init__.py │ │ └── test_fused_kernels.py │ └── type_shim.h ├── global_vars.py ├── indexer.py ├── initialize.py ├── memory.py ├── microbatches.py ├── model │ ├── __init__.py │ ├── bert_model.py │ ├── biencoder_model.py │ ├── classification.py │ ├── distributed.py │ ├── enums.py │ ├── fused_bias_gelu.py │ ├── fused_layer_norm.py │ ├── fused_softmax.py │ ├── gpt_model.py │ ├── language_model.py │ ├── module.py │ ├── multiple_choice.py │ ├── realm_model.py │ ├── t5_model.py │ ├── transformer.py │ ├── utils.py │ └── vision │ │ ├── classification.py │ │ ├── dino.py │ │ ├── esvit_swin_backbone.py │ │ ├── inpainting.py │ │ ├── knn_monitor.py │ │ ├── mit_backbone.py │ │ ├── swin_backbone.py │ │ ├── utils.py │ │ └── vit_backbone.py ├── mpu │ └── tests │ │ ├── __init__.py │ │ ├── commons.py │ │ ├── test_cross_entropy.py │ │ ├── test_data.py │ │ ├── test_initialize.py │ │ ├── test_layers.py │ │ └── test_random.py ├── optimizer │ ├── __init__.py │ ├── clip_grads.py │ ├── distrib_optimizer.py │ ├── grad_scaler.py │ └── optimizer.py ├── optimizer_param_scheduler.py ├── static │ └── index.html ├── text_generation │ ├── __init__.py │ ├── api.py │ ├── beam_utils.py │ ├── communication.py │ ├── forward_step.py │ ├── generation.py │ ├── sampling.py │ └── tokenization.py ├── text_generation_server.py ├── timers.py ├── tokenizer │ ├── __init__.py │ ├── bert_tokenization.py │ ├── gpt2_tokenization.py │ └── tokenizer.py ├── training.py └── utils.py ├── picture ├── .DS_Store ├── 13bx32A100_memory.svg ├── 2.7bx8A100_memory.pdf ├── 2.7bx8A100_memory.svg ├── 30bx32A100_memory.svg ├── 30bx64A100_memory.svg ├── 32x7b zhihu_throughput.tex ├── 7bx32A100_memory.svg ├── seq1f1b-I.png ├── seq1f1b_memory.pdf ├── seq1f1b_memory.png ├── seq1f1b_memory.svg ├── seq1f1b_original.png ├── seq1f1b_zerobubble.pdf └── seq1f1b_zerobubble.png ├── pretrain_bert.py ├── pretrain_gpt.py ├── pretrain_gpt_core.py ├── pretrain_ict.py ├── pretrain_retro.py ├── pretrain_t5.py ├── pretrain_vision_classify.py ├── pretrain_vision_dino.py ├── pretrain_vision_inpaint.py ├── pyproject.toml ├── run.sh ├── setup.py ├── tasks ├── data_utils.py ├── ensemble_classifier.py ├── eval_utils.py ├── finetune_utils.py ├── glue │ ├── data.py │ ├── finetune.py │ ├── mnli.py │ └── qqp.py ├── main.py ├── msdp │ ├── README.md │ ├── evaluate.py │ ├── main.py │ ├── metrics.py │ ├── preprocessing.py │ └── prompt.py ├── orqa │ ├── README.md │ ├── evaluate_orqa.py │ ├── evaluate_utils.py │ ├── supervised │ │ ├── data.py │ │ ├── eval_utils.py │ │ └── finetune.py │ └── unsupervised │ │ ├── nq.py │ │ ├── qa_utils.py │ │ └── tokenizers.py ├── race │ ├── data.py │ └── finetune.py ├── vision │ ├── classification │ │ ├── classification.py │ │ └── eval_utils.py │ ├── finetune_utils.py │ ├── main.py │ └── segmentation │ │ ├── cityscapes.py │ │ ├── data.py │ │ ├── finetune_segformer.py │ │ ├── finetune_setr.py │ │ ├── metrics.py │ │ ├── seg_heads.py │ │ ├── seg_models.py │ │ ├── transforms.py │ │ └── utils.py └── zeroshot_gpt │ ├── datasets.py │ ├── detokenizer.py │ └── evaluate.py ├── tests ├── __init__.py ├── functional_tests │ ├── __init__.py │ ├── python_test_utils │ │ ├── __init__.py │ │ ├── check_slurm_job_completion.py │ │ ├── get_test_results_from_tensorboard_logs.py │ │ ├── test_ci_pipeline.py │ │ └── test_resume_checkpoint_pipeline.py │ ├── shell_test_utils │ │ └── jobwait.sh │ ├── test_results │ │ ├── bert │ │ │ ├── bert_tp1_pp2_1nodes_50steps.json │ │ │ ├── bert_tp1_pp4_1nodes_50steps.json │ │ │ ├── bert_tp2_pp2_1nodes_50steps.json │ │ │ └── bert_tp4_pp1_1nodes_50steps.json │ │ └── gpt3 │ │ │ ├── gpt3_tp1_pp2_1nodes_50steps.json │ │ │ ├── gpt3_tp1_pp2_1nodes_50steps_core_enabled.json │ │ │ ├── gpt3_tp1_pp2_1nodes_50steps_core_enabled_rope_embeddings.json │ │ │ ├── gpt3_tp1_pp4_1nodes_50steps.json │ │ │ ├── gpt3_tp1_pp4_1nodes_50steps_core_enabled.json │ │ │ ├── gpt3_tp1_pp4_1nodes_50steps_core_enabled_disable_bias_linear.json │ │ │ ├── gpt3_tp1_pp4_1nodes_50steps_core_enabled_sequence_parallel.json │ │ │ ├── gpt3_tp1_pp4_1nodes_50steps_core_enabled_swiglu.json │ │ │ ├── gpt3_tp1_pp4_1nodes_50steps_core_enabled_untie_embeddings_and_outputs.json │ │ │ ├── gpt3_tp2_pp2_1nodes_50steps.json │ │ │ ├── gpt3_tp2_pp2_1nodes_50steps_core_enabled.json │ │ │ ├── gpt3_tp2_pp2_1nodes_50steps_te_enabled.json │ │ │ ├── gpt3_tp4_pp1_1nodes_50steps.json │ │ │ └── gpt3_tp4_pp1_1nodes_50steps_core_enabled.json │ └── test_scripts │ │ ├── bert │ │ ├── pretrain_bert_distributed_resume_checkpoint_test.sh │ │ ├── pretrain_bert_distributed_test.sh │ │ ├── sbatch_bert_distributed_resume_checkpoint_test.sh │ │ └── sbatch_bert_distributed_test.sh │ │ └── gpt3 │ │ ├── pretrain_gpt3_distributed_resume_checkpoint_test.sh │ │ ├── pretrain_gpt3_distributed_test.sh │ │ ├── sbatch_gpt3_distributed_resume_checkpoint_test.sh │ │ └── sbatch_gpt3_distributed_test.sh └── unit_tests │ ├── __init__.py │ ├── models │ ├── __init__.py │ ├── test_gpt_embedding.py │ └── test_gpt_model.py │ ├── pipeline_parallel │ ├── __init__.py │ └── test_schedules.py │ ├── tensor_parallel │ ├── test_cross_entropy.py │ ├── test_data.py │ ├── test_mappings.py │ ├── test_random.py │ └── test_tensor_parallel_utils.py │ ├── test_basic.py │ ├── test_parallel_state.py │ ├── test_utilities.py │ ├── test_utils.py │ └── transformer │ ├── __init__.py │ ├── test_attention.py │ ├── test_core_attention.py │ ├── test_mlp.py │ ├── test_module.py │ ├── test_transformer_block.py │ └── test_transformer_layer.py └── tools ├── autoformat.sh ├── bert_embedding ├── __init__.py ├── dataset.py ├── embed.py ├── external_libs.py ├── huggingface.py └── utils.py ├── checkpoint_loader_megatron.py ├── checkpoint_saver_megatron.py ├── checkpoint_util.py ├── linter.py ├── merge_datasets.py ├── openwebtext ├── README.md ├── add_id.py ├── blacklist_urls.py ├── cleanup_dataset.py ├── cleanup_fix_dataset.py ├── filter_ngrams.py ├── find_duplicates.py ├── group_duplicate_url.py ├── merge_jsons.py └── remove_group_duplicates.py ├── preprocess_data.py ├── preprocess_data_nmt.py ├── preprocess_mmdata.py ├── retro ├── README.md ├── cli │ ├── __init__.py │ ├── __main__.py │ └── cli.py ├── db │ ├── __init__.py │ ├── build.py │ ├── dataset.py │ └── utils.py ├── examples │ ├── preprocess_data.sh │ └── pretrain_model.sh ├── external_libs.py ├── index │ ├── __init__.py │ ├── build.py │ ├── factory.py │ ├── index.py │ ├── indexes │ │ ├── __init__.py │ │ ├── faiss_base.py │ │ └── faiss_par_add.py │ └── utils.py ├── main.py ├── query │ ├── __init__.py │ ├── chunk_dataset.py │ ├── query.py │ ├── retro_dataset.py │ └── utils.py └── utils.py ├── run_text_generation_server.py └── text_generation_cli.py /.coveragerc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/.coveragerc -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/.github/ISSUE_TEMPLATE/bug.md -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/enhancement.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/.github/ISSUE_TEMPLATE/enhancement.md -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/question.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/.github/ISSUE_TEMPLATE/question.md -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/regression.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/.github/ISSUE_TEMPLATE/regression.md -------------------------------------------------------------------------------- /.github/workflows/stale.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/.github/workflows/stale.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/.gitignore -------------------------------------------------------------------------------- /.gitlab-ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/.gitlab-ci.yml -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/README.md -------------------------------------------------------------------------------- /README_ZH.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/README_ZH.md -------------------------------------------------------------------------------- /docs/distrib_optimizer.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/docs/distrib_optimizer.md -------------------------------------------------------------------------------- /docs/images/distrib_optimizer/data_flow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/docs/images/distrib_optimizer/data_flow.png -------------------------------------------------------------------------------- /docs/images/distrib_optimizer/sharding_scheme.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/docs/images/distrib_optimizer/sharding_scheme.png -------------------------------------------------------------------------------- /examples/detxoify_lm/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/examples/detxoify_lm/README.md -------------------------------------------------------------------------------- /examples/detxoify_lm/annotations/filter-selfgeneration.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/examples/detxoify_lm/annotations/filter-selfgeneration.py -------------------------------------------------------------------------------- /examples/detxoify_lm/annotations/perspective_api_annotate.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/examples/detxoify_lm/annotations/perspective_api_annotate.py -------------------------------------------------------------------------------- /examples/detxoify_lm/annotations/preprocess.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/examples/detxoify_lm/annotations/preprocess.sh -------------------------------------------------------------------------------- /examples/detxoify_lm/finetune_gpt.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/examples/detxoify_lm/finetune_gpt.py -------------------------------------------------------------------------------- /examples/detxoify_lm/finetune_gpt_distributed-1.3b.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/examples/detxoify_lm/finetune_gpt_distributed-1.3b.sh -------------------------------------------------------------------------------- /examples/detxoify_lm/generate-1.3b.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/examples/detxoify_lm/generate-1.3b.sh -------------------------------------------------------------------------------- /examples/detxoify_lm/generate_samples_gpt.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/examples/detxoify_lm/generate_samples_gpt.py -------------------------------------------------------------------------------- /examples/detxoify_lm/perspective_api.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/examples/detxoify_lm/perspective_api.py -------------------------------------------------------------------------------- /examples/detxoify_lm/self_generation/selfgenerate-1.3b-unconditional.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/examples/detxoify_lm/self_generation/selfgenerate-1.3b-unconditional.sh -------------------------------------------------------------------------------- /examples/evaluate_retriever_nq.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/examples/evaluate_retriever_nq.sh -------------------------------------------------------------------------------- /examples/evaluate_zeroshot_gpt.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/examples/evaluate_zeroshot_gpt.sh -------------------------------------------------------------------------------- /examples/finetune_mnli_distributed.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/examples/finetune_mnli_distributed.sh -------------------------------------------------------------------------------- /examples/finetune_race_distributed.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/examples/finetune_race_distributed.sh -------------------------------------------------------------------------------- /examples/finetune_retriever_distributed.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/examples/finetune_retriever_distributed.sh -------------------------------------------------------------------------------- /examples/merge_mp_bert.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/examples/merge_mp_bert.sh -------------------------------------------------------------------------------- /examples/msdp/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/examples/msdp/README.md -------------------------------------------------------------------------------- /examples/msdp/data_processing.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/examples/msdp/data_processing.sh -------------------------------------------------------------------------------- /examples/msdp/eval_knwl_generation.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/examples/msdp/eval_knwl_generation.sh -------------------------------------------------------------------------------- /examples/msdp/eval_resp_generation.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/examples/msdp/eval_resp_generation.sh -------------------------------------------------------------------------------- /examples/msdp/prep_resp_gen.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/examples/msdp/prep_resp_gen.sh -------------------------------------------------------------------------------- /examples/msdp/prompt_knwl_gen.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/examples/msdp/prompt_knwl_gen.sh -------------------------------------------------------------------------------- /examples/msdp/prompt_resp_gen.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/examples/msdp/prompt_resp_gen.sh -------------------------------------------------------------------------------- /examples/pretrain_bert.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/examples/pretrain_bert.sh -------------------------------------------------------------------------------- /examples/pretrain_bert_distributed.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/examples/pretrain_bert_distributed.sh -------------------------------------------------------------------------------- /examples/pretrain_bert_distributed_with_mp.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/examples/pretrain_bert_distributed_with_mp.sh -------------------------------------------------------------------------------- /examples/pretrain_gpt.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/examples/pretrain_gpt.sh -------------------------------------------------------------------------------- /examples/pretrain_gpt3_175B.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/examples/pretrain_gpt3_175B.sh -------------------------------------------------------------------------------- /examples/pretrain_gpt_distributed.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/examples/pretrain_gpt_distributed.sh -------------------------------------------------------------------------------- /examples/pretrain_gpt_distributed_with_mp.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/examples/pretrain_gpt_distributed_with_mp.sh -------------------------------------------------------------------------------- /examples/pretrain_ict.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/examples/pretrain_ict.sh -------------------------------------------------------------------------------- /examples/pretrain_t5.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/examples/pretrain_t5.sh -------------------------------------------------------------------------------- /examples/pretrain_t5_distributed.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/examples/pretrain_t5_distributed.sh -------------------------------------------------------------------------------- /examples/pretrain_t5_distributed_with_mp.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/examples/pretrain_t5_distributed_with_mp.sh -------------------------------------------------------------------------------- /examples/run_text_generation_server_345M.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/examples/run_text_generation_server_345M.sh -------------------------------------------------------------------------------- /examples/run_text_generation_server_345M_8_tensor_parallel.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/examples/run_text_generation_server_345M_8_tensor_parallel.sh -------------------------------------------------------------------------------- /examples/sc21/CONFIG.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/examples/sc21/CONFIG.sh -------------------------------------------------------------------------------- /examples/sc21/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/examples/sc21/README.md -------------------------------------------------------------------------------- /examples/sc21/SBATCH.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/examples/sc21/SBATCH.sh -------------------------------------------------------------------------------- /examples/sc21/SRUN.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/examples/sc21/SRUN.sh -------------------------------------------------------------------------------- /examples/sc21/run_figure_11.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/examples/sc21/run_figure_11.sh -------------------------------------------------------------------------------- /examples/sc21/run_figure_12.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/examples/sc21/run_figure_12.sh -------------------------------------------------------------------------------- /examples/sc21/run_figure_13.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/examples/sc21/run_figure_13.sh -------------------------------------------------------------------------------- /examples/sc21/run_figure_14.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/examples/sc21/run_figure_14.sh -------------------------------------------------------------------------------- /examples/sc21/run_figure_15.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/examples/sc21/run_figure_15.sh -------------------------------------------------------------------------------- /examples/sc21/run_figure_16.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/examples/sc21/run_figure_16.sh -------------------------------------------------------------------------------- /examples/sc21/run_figure_17.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/examples/sc21/run_figure_17.sh -------------------------------------------------------------------------------- /examples/sc21/run_figure_18.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/examples/sc21/run_figure_18.sh -------------------------------------------------------------------------------- /examples/sc21/run_table_1.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/examples/sc21/run_table_1.sh -------------------------------------------------------------------------------- /exp.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/exp.sh -------------------------------------------------------------------------------- /images/Achieved_petaFLOPs.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/images/Achieved_petaFLOPs.png -------------------------------------------------------------------------------- /images/cases_april2021.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/images/cases_april2021.png -------------------------------------------------------------------------------- /megatron/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/__init__.py -------------------------------------------------------------------------------- /megatron/arguments.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/arguments.py -------------------------------------------------------------------------------- /megatron/checkpointing.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/checkpointing.py -------------------------------------------------------------------------------- /megatron/core/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/core/README.md -------------------------------------------------------------------------------- /megatron/core/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/core/__init__.py -------------------------------------------------------------------------------- /megatron/core/dist_checkpointing/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/core/dist_checkpointing/__init__.py -------------------------------------------------------------------------------- /megatron/core/dist_checkpointing/core.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/core/dist_checkpointing/core.py -------------------------------------------------------------------------------- /megatron/core/dist_checkpointing/dict_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/core/dist_checkpointing/dict_utils.py -------------------------------------------------------------------------------- /megatron/core/dist_checkpointing/mapping.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/core/dist_checkpointing/mapping.py -------------------------------------------------------------------------------- /megatron/core/dist_checkpointing/optimizer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/core/dist_checkpointing/optimizer.py -------------------------------------------------------------------------------- /megatron/core/dist_checkpointing/serialization.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/core/dist_checkpointing/serialization.py -------------------------------------------------------------------------------- /megatron/core/dist_checkpointing/strategies/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/core/dist_checkpointing/strategies/__init__.py -------------------------------------------------------------------------------- /megatron/core/dist_checkpointing/strategies/base.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/core/dist_checkpointing/strategies/base.py -------------------------------------------------------------------------------- /megatron/core/dist_checkpointing/strategies/tensorstore.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/core/dist_checkpointing/strategies/tensorstore.py -------------------------------------------------------------------------------- /megatron/core/dist_checkpointing/strategies/two_stage.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/core/dist_checkpointing/strategies/two_stage.py -------------------------------------------------------------------------------- /megatron/core/dist_checkpointing/strategies/zarr.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/core/dist_checkpointing/strategies/zarr.py -------------------------------------------------------------------------------- /megatron/core/dist_checkpointing/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/core/dist_checkpointing/utils.py -------------------------------------------------------------------------------- /megatron/core/enums.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/core/enums.py -------------------------------------------------------------------------------- /megatron/core/fusions/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /megatron/core/fusions/fused_bias_dropout.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/core/fusions/fused_bias_dropout.py -------------------------------------------------------------------------------- /megatron/core/fusions/fused_bias_gelu.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/core/fusions/fused_bias_gelu.py -------------------------------------------------------------------------------- /megatron/core/fusions/fused_layer_norm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/core/fusions/fused_layer_norm.py -------------------------------------------------------------------------------- /megatron/core/fusions/fused_softmax.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/core/fusions/fused_softmax.py -------------------------------------------------------------------------------- /megatron/core/inference_params.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/core/inference_params.py -------------------------------------------------------------------------------- /megatron/core/model_parallel_config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/core/model_parallel_config.py -------------------------------------------------------------------------------- /megatron/core/models/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /megatron/core/models/common/rotary_pos_embedding.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/core/models/common/rotary_pos_embedding.py -------------------------------------------------------------------------------- /megatron/core/models/gpt/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/core/models/gpt/__init__.py -------------------------------------------------------------------------------- /megatron/core/models/gpt/gpt_embedding.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/core/models/gpt/gpt_embedding.py -------------------------------------------------------------------------------- /megatron/core/models/gpt/gpt_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/core/models/gpt/gpt_model.py -------------------------------------------------------------------------------- /megatron/core/package_info.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/core/package_info.py -------------------------------------------------------------------------------- /megatron/core/parallel_state.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/core/parallel_state.py -------------------------------------------------------------------------------- /megatron/core/pipeline_parallel/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/core/pipeline_parallel/__init__.py -------------------------------------------------------------------------------- /megatron/core/pipeline_parallel/p2p_communication.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/core/pipeline_parallel/p2p_communication.py -------------------------------------------------------------------------------- /megatron/core/pipeline_parallel/schedules.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/core/pipeline_parallel/schedules.py -------------------------------------------------------------------------------- /megatron/core/pipeline_parallel/sp_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/core/pipeline_parallel/sp_utils.py -------------------------------------------------------------------------------- /megatron/core/pipeline_parallel/split_solver.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/core/pipeline_parallel/split_solver.py -------------------------------------------------------------------------------- /megatron/core/requirements.txt: -------------------------------------------------------------------------------- 1 | torch -------------------------------------------------------------------------------- /megatron/core/tensor_parallel/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/core/tensor_parallel/__init__.py -------------------------------------------------------------------------------- /megatron/core/tensor_parallel/cross_entropy.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/core/tensor_parallel/cross_entropy.py -------------------------------------------------------------------------------- /megatron/core/tensor_parallel/data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/core/tensor_parallel/data.py -------------------------------------------------------------------------------- /megatron/core/tensor_parallel/layers.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/core/tensor_parallel/layers.py -------------------------------------------------------------------------------- /megatron/core/tensor_parallel/mappings.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/core/tensor_parallel/mappings.py -------------------------------------------------------------------------------- /megatron/core/tensor_parallel/random.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/core/tensor_parallel/random.py -------------------------------------------------------------------------------- /megatron/core/tensor_parallel/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/core/tensor_parallel/utils.py -------------------------------------------------------------------------------- /megatron/core/transformer/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/core/transformer/__init__.py -------------------------------------------------------------------------------- /megatron/core/transformer/attention.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/core/transformer/attention.py -------------------------------------------------------------------------------- /megatron/core/transformer/custom_layers/transformer_engine.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/core/transformer/custom_layers/transformer_engine.py -------------------------------------------------------------------------------- /megatron/core/transformer/dot_product_attention.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/core/transformer/dot_product_attention.py -------------------------------------------------------------------------------- /megatron/core/transformer/enums.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/core/transformer/enums.py -------------------------------------------------------------------------------- /megatron/core/transformer/identity_op.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/core/transformer/identity_op.py -------------------------------------------------------------------------------- /megatron/core/transformer/mlp.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/core/transformer/mlp.py -------------------------------------------------------------------------------- /megatron/core/transformer/module.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/core/transformer/module.py -------------------------------------------------------------------------------- /megatron/core/transformer/transformer_block.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/core/transformer/transformer_block.py -------------------------------------------------------------------------------- /megatron/core/transformer/transformer_config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/core/transformer/transformer_config.py -------------------------------------------------------------------------------- /megatron/core/transformer/transformer_layer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/core/transformer/transformer_layer.py -------------------------------------------------------------------------------- /megatron/core/transformer/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/core/transformer/utils.py -------------------------------------------------------------------------------- /megatron/core/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/core/utils.py -------------------------------------------------------------------------------- /megatron/data/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/data/Makefile -------------------------------------------------------------------------------- /megatron/data/__init__.py: -------------------------------------------------------------------------------- 1 | from . import indexed_dataset 2 | -------------------------------------------------------------------------------- /megatron/data/autoaugment.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/data/autoaugment.py -------------------------------------------------------------------------------- /megatron/data/bert_dataset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/data/bert_dataset.py -------------------------------------------------------------------------------- /megatron/data/biencoder_dataset_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/data/biencoder_dataset_utils.py -------------------------------------------------------------------------------- /megatron/data/blendable_dataset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/data/blendable_dataset.py -------------------------------------------------------------------------------- /megatron/data/data_samplers.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/data/data_samplers.py -------------------------------------------------------------------------------- /megatron/data/dataset_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/data/dataset_utils.py -------------------------------------------------------------------------------- /megatron/data/gpt_dataset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/data/gpt_dataset.py -------------------------------------------------------------------------------- /megatron/data/helpers.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/data/helpers.cpp -------------------------------------------------------------------------------- /megatron/data/ict_dataset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/data/ict_dataset.py -------------------------------------------------------------------------------- /megatron/data/image_folder.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/data/image_folder.py -------------------------------------------------------------------------------- /megatron/data/indexed_dataset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/data/indexed_dataset.py -------------------------------------------------------------------------------- /megatron/data/multimodal_dataset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/data/multimodal_dataset.py -------------------------------------------------------------------------------- /megatron/data/orqa_wiki_dataset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/data/orqa_wiki_dataset.py -------------------------------------------------------------------------------- /megatron/data/realm_dataset_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/data/realm_dataset_utils.py -------------------------------------------------------------------------------- /megatron/data/realm_index.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/data/realm_index.py -------------------------------------------------------------------------------- /megatron/data/t5_dataset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/data/t5_dataset.py -------------------------------------------------------------------------------- /megatron/data/test/test_indexed_dataset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/data/test/test_indexed_dataset.py -------------------------------------------------------------------------------- /megatron/data/test/test_preprocess_data.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/data/test/test_preprocess_data.sh -------------------------------------------------------------------------------- /megatron/data/vit_dataset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/data/vit_dataset.py -------------------------------------------------------------------------------- /megatron/dist_signal_handler.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/dist_signal_handler.py -------------------------------------------------------------------------------- /megatron/fp16_deprecated/loss_scaler.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/fp16_deprecated/loss_scaler.py -------------------------------------------------------------------------------- /megatron/fused_kernels/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/fused_kernels/__init__.py -------------------------------------------------------------------------------- /megatron/fused_kernels/compat.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/fused_kernels/compat.h -------------------------------------------------------------------------------- /megatron/fused_kernels/tests/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /megatron/fused_kernels/tests/test_fused_kernels.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/fused_kernels/tests/test_fused_kernels.py -------------------------------------------------------------------------------- /megatron/fused_kernels/type_shim.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/fused_kernels/type_shim.h -------------------------------------------------------------------------------- /megatron/global_vars.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/global_vars.py -------------------------------------------------------------------------------- /megatron/indexer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/indexer.py -------------------------------------------------------------------------------- /megatron/initialize.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/initialize.py -------------------------------------------------------------------------------- /megatron/memory.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/memory.py -------------------------------------------------------------------------------- /megatron/microbatches.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/microbatches.py -------------------------------------------------------------------------------- /megatron/model/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/model/__init__.py -------------------------------------------------------------------------------- /megatron/model/bert_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/model/bert_model.py -------------------------------------------------------------------------------- /megatron/model/biencoder_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/model/biencoder_model.py -------------------------------------------------------------------------------- /megatron/model/classification.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/model/classification.py -------------------------------------------------------------------------------- /megatron/model/distributed.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/model/distributed.py -------------------------------------------------------------------------------- /megatron/model/enums.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/model/enums.py -------------------------------------------------------------------------------- /megatron/model/fused_bias_gelu.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/model/fused_bias_gelu.py -------------------------------------------------------------------------------- /megatron/model/fused_layer_norm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/model/fused_layer_norm.py -------------------------------------------------------------------------------- /megatron/model/fused_softmax.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/model/fused_softmax.py -------------------------------------------------------------------------------- /megatron/model/gpt_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/model/gpt_model.py -------------------------------------------------------------------------------- /megatron/model/language_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/model/language_model.py -------------------------------------------------------------------------------- /megatron/model/module.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/model/module.py -------------------------------------------------------------------------------- /megatron/model/multiple_choice.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/model/multiple_choice.py -------------------------------------------------------------------------------- /megatron/model/realm_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/model/realm_model.py -------------------------------------------------------------------------------- /megatron/model/t5_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/model/t5_model.py -------------------------------------------------------------------------------- /megatron/model/transformer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/model/transformer.py -------------------------------------------------------------------------------- /megatron/model/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/model/utils.py -------------------------------------------------------------------------------- /megatron/model/vision/classification.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/model/vision/classification.py -------------------------------------------------------------------------------- /megatron/model/vision/dino.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/model/vision/dino.py -------------------------------------------------------------------------------- /megatron/model/vision/esvit_swin_backbone.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/model/vision/esvit_swin_backbone.py -------------------------------------------------------------------------------- /megatron/model/vision/inpainting.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/model/vision/inpainting.py -------------------------------------------------------------------------------- /megatron/model/vision/knn_monitor.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/model/vision/knn_monitor.py -------------------------------------------------------------------------------- /megatron/model/vision/mit_backbone.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/model/vision/mit_backbone.py -------------------------------------------------------------------------------- /megatron/model/vision/swin_backbone.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/model/vision/swin_backbone.py -------------------------------------------------------------------------------- /megatron/model/vision/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/model/vision/utils.py -------------------------------------------------------------------------------- /megatron/model/vision/vit_backbone.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/model/vision/vit_backbone.py -------------------------------------------------------------------------------- /megatron/mpu/tests/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /megatron/mpu/tests/commons.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/mpu/tests/commons.py -------------------------------------------------------------------------------- /megatron/mpu/tests/test_cross_entropy.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/mpu/tests/test_cross_entropy.py -------------------------------------------------------------------------------- /megatron/mpu/tests/test_data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/mpu/tests/test_data.py -------------------------------------------------------------------------------- /megatron/mpu/tests/test_initialize.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/mpu/tests/test_initialize.py -------------------------------------------------------------------------------- /megatron/mpu/tests/test_layers.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/mpu/tests/test_layers.py -------------------------------------------------------------------------------- /megatron/mpu/tests/test_random.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/mpu/tests/test_random.py -------------------------------------------------------------------------------- /megatron/optimizer/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/optimizer/__init__.py -------------------------------------------------------------------------------- /megatron/optimizer/clip_grads.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/optimizer/clip_grads.py -------------------------------------------------------------------------------- /megatron/optimizer/distrib_optimizer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/optimizer/distrib_optimizer.py -------------------------------------------------------------------------------- /megatron/optimizer/grad_scaler.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/optimizer/grad_scaler.py -------------------------------------------------------------------------------- /megatron/optimizer/optimizer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/optimizer/optimizer.py -------------------------------------------------------------------------------- /megatron/optimizer_param_scheduler.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/optimizer_param_scheduler.py -------------------------------------------------------------------------------- /megatron/static/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/static/index.html -------------------------------------------------------------------------------- /megatron/text_generation/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/text_generation/__init__.py -------------------------------------------------------------------------------- /megatron/text_generation/api.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/text_generation/api.py -------------------------------------------------------------------------------- /megatron/text_generation/beam_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/text_generation/beam_utils.py -------------------------------------------------------------------------------- /megatron/text_generation/communication.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/text_generation/communication.py -------------------------------------------------------------------------------- /megatron/text_generation/forward_step.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/text_generation/forward_step.py -------------------------------------------------------------------------------- /megatron/text_generation/generation.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/text_generation/generation.py -------------------------------------------------------------------------------- /megatron/text_generation/sampling.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/text_generation/sampling.py -------------------------------------------------------------------------------- /megatron/text_generation/tokenization.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/text_generation/tokenization.py -------------------------------------------------------------------------------- /megatron/text_generation_server.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/text_generation_server.py -------------------------------------------------------------------------------- /megatron/timers.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/timers.py -------------------------------------------------------------------------------- /megatron/tokenizer/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/tokenizer/__init__.py -------------------------------------------------------------------------------- /megatron/tokenizer/bert_tokenization.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/tokenizer/bert_tokenization.py -------------------------------------------------------------------------------- /megatron/tokenizer/gpt2_tokenization.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/tokenizer/gpt2_tokenization.py -------------------------------------------------------------------------------- /megatron/tokenizer/tokenizer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/tokenizer/tokenizer.py -------------------------------------------------------------------------------- /megatron/training.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/training.py -------------------------------------------------------------------------------- /megatron/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/megatron/utils.py -------------------------------------------------------------------------------- /picture/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/picture/.DS_Store -------------------------------------------------------------------------------- /picture/13bx32A100_memory.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/picture/13bx32A100_memory.svg -------------------------------------------------------------------------------- /picture/2.7bx8A100_memory.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/picture/2.7bx8A100_memory.pdf -------------------------------------------------------------------------------- /picture/2.7bx8A100_memory.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/picture/2.7bx8A100_memory.svg -------------------------------------------------------------------------------- /picture/30bx32A100_memory.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/picture/30bx32A100_memory.svg -------------------------------------------------------------------------------- /picture/30bx64A100_memory.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/picture/30bx64A100_memory.svg -------------------------------------------------------------------------------- /picture/32x7b zhihu_throughput.tex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/picture/32x7b zhihu_throughput.tex -------------------------------------------------------------------------------- /picture/7bx32A100_memory.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/picture/7bx32A100_memory.svg -------------------------------------------------------------------------------- /picture/seq1f1b-I.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/picture/seq1f1b-I.png -------------------------------------------------------------------------------- /picture/seq1f1b_memory.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/picture/seq1f1b_memory.pdf -------------------------------------------------------------------------------- /picture/seq1f1b_memory.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/picture/seq1f1b_memory.png -------------------------------------------------------------------------------- /picture/seq1f1b_memory.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/picture/seq1f1b_memory.svg -------------------------------------------------------------------------------- /picture/seq1f1b_original.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/picture/seq1f1b_original.png -------------------------------------------------------------------------------- /picture/seq1f1b_zerobubble.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/picture/seq1f1b_zerobubble.pdf -------------------------------------------------------------------------------- /picture/seq1f1b_zerobubble.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/picture/seq1f1b_zerobubble.png -------------------------------------------------------------------------------- /pretrain_bert.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/pretrain_bert.py -------------------------------------------------------------------------------- /pretrain_gpt.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/pretrain_gpt.py -------------------------------------------------------------------------------- /pretrain_gpt_core.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/pretrain_gpt_core.py -------------------------------------------------------------------------------- /pretrain_ict.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/pretrain_ict.py -------------------------------------------------------------------------------- /pretrain_retro.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/pretrain_retro.py -------------------------------------------------------------------------------- /pretrain_t5.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/pretrain_t5.py -------------------------------------------------------------------------------- /pretrain_vision_classify.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/pretrain_vision_classify.py -------------------------------------------------------------------------------- /pretrain_vision_dino.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/pretrain_vision_dino.py -------------------------------------------------------------------------------- /pretrain_vision_inpaint.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/pretrain_vision_inpaint.py -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/pyproject.toml -------------------------------------------------------------------------------- /run.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/run.sh -------------------------------------------------------------------------------- /setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/setup.py -------------------------------------------------------------------------------- /tasks/data_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tasks/data_utils.py -------------------------------------------------------------------------------- /tasks/ensemble_classifier.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tasks/ensemble_classifier.py -------------------------------------------------------------------------------- /tasks/eval_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tasks/eval_utils.py -------------------------------------------------------------------------------- /tasks/finetune_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tasks/finetune_utils.py -------------------------------------------------------------------------------- /tasks/glue/data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tasks/glue/data.py -------------------------------------------------------------------------------- /tasks/glue/finetune.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tasks/glue/finetune.py -------------------------------------------------------------------------------- /tasks/glue/mnli.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tasks/glue/mnli.py -------------------------------------------------------------------------------- /tasks/glue/qqp.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tasks/glue/qqp.py -------------------------------------------------------------------------------- /tasks/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tasks/main.py -------------------------------------------------------------------------------- /tasks/msdp/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tasks/msdp/README.md -------------------------------------------------------------------------------- /tasks/msdp/evaluate.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tasks/msdp/evaluate.py -------------------------------------------------------------------------------- /tasks/msdp/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tasks/msdp/main.py -------------------------------------------------------------------------------- /tasks/msdp/metrics.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tasks/msdp/metrics.py -------------------------------------------------------------------------------- /tasks/msdp/preprocessing.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tasks/msdp/preprocessing.py -------------------------------------------------------------------------------- /tasks/msdp/prompt.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tasks/msdp/prompt.py -------------------------------------------------------------------------------- /tasks/orqa/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tasks/orqa/README.md -------------------------------------------------------------------------------- /tasks/orqa/evaluate_orqa.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tasks/orqa/evaluate_orqa.py -------------------------------------------------------------------------------- /tasks/orqa/evaluate_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tasks/orqa/evaluate_utils.py -------------------------------------------------------------------------------- /tasks/orqa/supervised/data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tasks/orqa/supervised/data.py -------------------------------------------------------------------------------- /tasks/orqa/supervised/eval_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tasks/orqa/supervised/eval_utils.py -------------------------------------------------------------------------------- /tasks/orqa/supervised/finetune.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tasks/orqa/supervised/finetune.py -------------------------------------------------------------------------------- /tasks/orqa/unsupervised/nq.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tasks/orqa/unsupervised/nq.py -------------------------------------------------------------------------------- /tasks/orqa/unsupervised/qa_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tasks/orqa/unsupervised/qa_utils.py -------------------------------------------------------------------------------- /tasks/orqa/unsupervised/tokenizers.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tasks/orqa/unsupervised/tokenizers.py -------------------------------------------------------------------------------- /tasks/race/data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tasks/race/data.py -------------------------------------------------------------------------------- /tasks/race/finetune.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tasks/race/finetune.py -------------------------------------------------------------------------------- /tasks/vision/classification/classification.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tasks/vision/classification/classification.py -------------------------------------------------------------------------------- /tasks/vision/classification/eval_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tasks/vision/classification/eval_utils.py -------------------------------------------------------------------------------- /tasks/vision/finetune_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tasks/vision/finetune_utils.py -------------------------------------------------------------------------------- /tasks/vision/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tasks/vision/main.py -------------------------------------------------------------------------------- /tasks/vision/segmentation/cityscapes.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tasks/vision/segmentation/cityscapes.py -------------------------------------------------------------------------------- /tasks/vision/segmentation/data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tasks/vision/segmentation/data.py -------------------------------------------------------------------------------- /tasks/vision/segmentation/finetune_segformer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tasks/vision/segmentation/finetune_segformer.py -------------------------------------------------------------------------------- /tasks/vision/segmentation/finetune_setr.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tasks/vision/segmentation/finetune_setr.py -------------------------------------------------------------------------------- /tasks/vision/segmentation/metrics.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tasks/vision/segmentation/metrics.py -------------------------------------------------------------------------------- /tasks/vision/segmentation/seg_heads.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tasks/vision/segmentation/seg_heads.py -------------------------------------------------------------------------------- /tasks/vision/segmentation/seg_models.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tasks/vision/segmentation/seg_models.py -------------------------------------------------------------------------------- /tasks/vision/segmentation/transforms.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tasks/vision/segmentation/transforms.py -------------------------------------------------------------------------------- /tasks/vision/segmentation/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tasks/vision/segmentation/utils.py -------------------------------------------------------------------------------- /tasks/zeroshot_gpt/datasets.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tasks/zeroshot_gpt/datasets.py -------------------------------------------------------------------------------- /tasks/zeroshot_gpt/detokenizer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tasks/zeroshot_gpt/detokenizer.py -------------------------------------------------------------------------------- /tasks/zeroshot_gpt/evaluate.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tasks/zeroshot_gpt/evaluate.py -------------------------------------------------------------------------------- /tests/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/functional_tests/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/functional_tests/python_test_utils/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/functional_tests/python_test_utils/check_slurm_job_completion.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tests/functional_tests/python_test_utils/check_slurm_job_completion.py -------------------------------------------------------------------------------- /tests/functional_tests/python_test_utils/get_test_results_from_tensorboard_logs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tests/functional_tests/python_test_utils/get_test_results_from_tensorboard_logs.py -------------------------------------------------------------------------------- /tests/functional_tests/python_test_utils/test_ci_pipeline.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tests/functional_tests/python_test_utils/test_ci_pipeline.py -------------------------------------------------------------------------------- /tests/functional_tests/python_test_utils/test_resume_checkpoint_pipeline.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tests/functional_tests/python_test_utils/test_resume_checkpoint_pipeline.py -------------------------------------------------------------------------------- /tests/functional_tests/shell_test_utils/jobwait.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tests/functional_tests/shell_test_utils/jobwait.sh -------------------------------------------------------------------------------- /tests/functional_tests/test_results/bert/bert_tp1_pp2_1nodes_50steps.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tests/functional_tests/test_results/bert/bert_tp1_pp2_1nodes_50steps.json -------------------------------------------------------------------------------- /tests/functional_tests/test_results/bert/bert_tp1_pp4_1nodes_50steps.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tests/functional_tests/test_results/bert/bert_tp1_pp4_1nodes_50steps.json -------------------------------------------------------------------------------- /tests/functional_tests/test_results/bert/bert_tp2_pp2_1nodes_50steps.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tests/functional_tests/test_results/bert/bert_tp2_pp2_1nodes_50steps.json -------------------------------------------------------------------------------- /tests/functional_tests/test_results/bert/bert_tp4_pp1_1nodes_50steps.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tests/functional_tests/test_results/bert/bert_tp4_pp1_1nodes_50steps.json -------------------------------------------------------------------------------- /tests/functional_tests/test_results/gpt3/gpt3_tp1_pp2_1nodes_50steps.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tests/functional_tests/test_results/gpt3/gpt3_tp1_pp2_1nodes_50steps.json -------------------------------------------------------------------------------- /tests/functional_tests/test_results/gpt3/gpt3_tp1_pp2_1nodes_50steps_core_enabled.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tests/functional_tests/test_results/gpt3/gpt3_tp1_pp2_1nodes_50steps_core_enabled.json -------------------------------------------------------------------------------- /tests/functional_tests/test_results/gpt3/gpt3_tp1_pp2_1nodes_50steps_core_enabled_rope_embeddings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tests/functional_tests/test_results/gpt3/gpt3_tp1_pp2_1nodes_50steps_core_enabled_rope_embeddings.json -------------------------------------------------------------------------------- /tests/functional_tests/test_results/gpt3/gpt3_tp1_pp4_1nodes_50steps.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tests/functional_tests/test_results/gpt3/gpt3_tp1_pp4_1nodes_50steps.json -------------------------------------------------------------------------------- /tests/functional_tests/test_results/gpt3/gpt3_tp1_pp4_1nodes_50steps_core_enabled.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tests/functional_tests/test_results/gpt3/gpt3_tp1_pp4_1nodes_50steps_core_enabled.json -------------------------------------------------------------------------------- /tests/functional_tests/test_results/gpt3/gpt3_tp1_pp4_1nodes_50steps_core_enabled_disable_bias_linear.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tests/functional_tests/test_results/gpt3/gpt3_tp1_pp4_1nodes_50steps_core_enabled_disable_bias_linear.json -------------------------------------------------------------------------------- /tests/functional_tests/test_results/gpt3/gpt3_tp1_pp4_1nodes_50steps_core_enabled_sequence_parallel.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tests/functional_tests/test_results/gpt3/gpt3_tp1_pp4_1nodes_50steps_core_enabled_sequence_parallel.json -------------------------------------------------------------------------------- /tests/functional_tests/test_results/gpt3/gpt3_tp1_pp4_1nodes_50steps_core_enabled_swiglu.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tests/functional_tests/test_results/gpt3/gpt3_tp1_pp4_1nodes_50steps_core_enabled_swiglu.json -------------------------------------------------------------------------------- /tests/functional_tests/test_results/gpt3/gpt3_tp1_pp4_1nodes_50steps_core_enabled_untie_embeddings_and_outputs.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tests/functional_tests/test_results/gpt3/gpt3_tp1_pp4_1nodes_50steps_core_enabled_untie_embeddings_and_outputs.json -------------------------------------------------------------------------------- /tests/functional_tests/test_results/gpt3/gpt3_tp2_pp2_1nodes_50steps.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tests/functional_tests/test_results/gpt3/gpt3_tp2_pp2_1nodes_50steps.json -------------------------------------------------------------------------------- /tests/functional_tests/test_results/gpt3/gpt3_tp2_pp2_1nodes_50steps_core_enabled.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tests/functional_tests/test_results/gpt3/gpt3_tp2_pp2_1nodes_50steps_core_enabled.json -------------------------------------------------------------------------------- /tests/functional_tests/test_results/gpt3/gpt3_tp2_pp2_1nodes_50steps_te_enabled.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tests/functional_tests/test_results/gpt3/gpt3_tp2_pp2_1nodes_50steps_te_enabled.json -------------------------------------------------------------------------------- /tests/functional_tests/test_results/gpt3/gpt3_tp4_pp1_1nodes_50steps.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tests/functional_tests/test_results/gpt3/gpt3_tp4_pp1_1nodes_50steps.json -------------------------------------------------------------------------------- /tests/functional_tests/test_results/gpt3/gpt3_tp4_pp1_1nodes_50steps_core_enabled.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tests/functional_tests/test_results/gpt3/gpt3_tp4_pp1_1nodes_50steps_core_enabled.json -------------------------------------------------------------------------------- /tests/functional_tests/test_scripts/bert/pretrain_bert_distributed_resume_checkpoint_test.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tests/functional_tests/test_scripts/bert/pretrain_bert_distributed_resume_checkpoint_test.sh -------------------------------------------------------------------------------- /tests/functional_tests/test_scripts/bert/pretrain_bert_distributed_test.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tests/functional_tests/test_scripts/bert/pretrain_bert_distributed_test.sh -------------------------------------------------------------------------------- /tests/functional_tests/test_scripts/bert/sbatch_bert_distributed_resume_checkpoint_test.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tests/functional_tests/test_scripts/bert/sbatch_bert_distributed_resume_checkpoint_test.sh -------------------------------------------------------------------------------- /tests/functional_tests/test_scripts/bert/sbatch_bert_distributed_test.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tests/functional_tests/test_scripts/bert/sbatch_bert_distributed_test.sh -------------------------------------------------------------------------------- /tests/functional_tests/test_scripts/gpt3/pretrain_gpt3_distributed_resume_checkpoint_test.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tests/functional_tests/test_scripts/gpt3/pretrain_gpt3_distributed_resume_checkpoint_test.sh -------------------------------------------------------------------------------- /tests/functional_tests/test_scripts/gpt3/pretrain_gpt3_distributed_test.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tests/functional_tests/test_scripts/gpt3/pretrain_gpt3_distributed_test.sh -------------------------------------------------------------------------------- /tests/functional_tests/test_scripts/gpt3/sbatch_gpt3_distributed_resume_checkpoint_test.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tests/functional_tests/test_scripts/gpt3/sbatch_gpt3_distributed_resume_checkpoint_test.sh -------------------------------------------------------------------------------- /tests/functional_tests/test_scripts/gpt3/sbatch_gpt3_distributed_test.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tests/functional_tests/test_scripts/gpt3/sbatch_gpt3_distributed_test.sh -------------------------------------------------------------------------------- /tests/unit_tests/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/unit_tests/models/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/unit_tests/models/test_gpt_embedding.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tests/unit_tests/models/test_gpt_embedding.py -------------------------------------------------------------------------------- /tests/unit_tests/models/test_gpt_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tests/unit_tests/models/test_gpt_model.py -------------------------------------------------------------------------------- /tests/unit_tests/pipeline_parallel/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/unit_tests/pipeline_parallel/test_schedules.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tests/unit_tests/pipeline_parallel/test_schedules.py -------------------------------------------------------------------------------- /tests/unit_tests/tensor_parallel/test_cross_entropy.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tests/unit_tests/tensor_parallel/test_cross_entropy.py -------------------------------------------------------------------------------- /tests/unit_tests/tensor_parallel/test_data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tests/unit_tests/tensor_parallel/test_data.py -------------------------------------------------------------------------------- /tests/unit_tests/tensor_parallel/test_mappings.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tests/unit_tests/tensor_parallel/test_mappings.py -------------------------------------------------------------------------------- /tests/unit_tests/tensor_parallel/test_random.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tests/unit_tests/tensor_parallel/test_random.py -------------------------------------------------------------------------------- /tests/unit_tests/tensor_parallel/test_tensor_parallel_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tests/unit_tests/tensor_parallel/test_tensor_parallel_utils.py -------------------------------------------------------------------------------- /tests/unit_tests/test_basic.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tests/unit_tests/test_basic.py -------------------------------------------------------------------------------- /tests/unit_tests/test_parallel_state.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tests/unit_tests/test_parallel_state.py -------------------------------------------------------------------------------- /tests/unit_tests/test_utilities.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tests/unit_tests/test_utilities.py -------------------------------------------------------------------------------- /tests/unit_tests/test_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tests/unit_tests/test_utils.py -------------------------------------------------------------------------------- /tests/unit_tests/transformer/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/unit_tests/transformer/test_attention.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tests/unit_tests/transformer/test_attention.py -------------------------------------------------------------------------------- /tests/unit_tests/transformer/test_core_attention.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tests/unit_tests/transformer/test_core_attention.py -------------------------------------------------------------------------------- /tests/unit_tests/transformer/test_mlp.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tests/unit_tests/transformer/test_mlp.py -------------------------------------------------------------------------------- /tests/unit_tests/transformer/test_module.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tests/unit_tests/transformer/test_module.py -------------------------------------------------------------------------------- /tests/unit_tests/transformer/test_transformer_block.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tests/unit_tests/transformer/test_transformer_block.py -------------------------------------------------------------------------------- /tests/unit_tests/transformer/test_transformer_layer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tests/unit_tests/transformer/test_transformer_layer.py -------------------------------------------------------------------------------- /tools/autoformat.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tools/autoformat.sh -------------------------------------------------------------------------------- /tools/bert_embedding/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tools/bert_embedding/__init__.py -------------------------------------------------------------------------------- /tools/bert_embedding/dataset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tools/bert_embedding/dataset.py -------------------------------------------------------------------------------- /tools/bert_embedding/embed.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tools/bert_embedding/embed.py -------------------------------------------------------------------------------- /tools/bert_embedding/external_libs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tools/bert_embedding/external_libs.py -------------------------------------------------------------------------------- /tools/bert_embedding/huggingface.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tools/bert_embedding/huggingface.py -------------------------------------------------------------------------------- /tools/bert_embedding/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tools/bert_embedding/utils.py -------------------------------------------------------------------------------- /tools/checkpoint_loader_megatron.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tools/checkpoint_loader_megatron.py -------------------------------------------------------------------------------- /tools/checkpoint_saver_megatron.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tools/checkpoint_saver_megatron.py -------------------------------------------------------------------------------- /tools/checkpoint_util.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tools/checkpoint_util.py -------------------------------------------------------------------------------- /tools/linter.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tools/linter.py -------------------------------------------------------------------------------- /tools/merge_datasets.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tools/merge_datasets.py -------------------------------------------------------------------------------- /tools/openwebtext/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tools/openwebtext/README.md -------------------------------------------------------------------------------- /tools/openwebtext/add_id.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tools/openwebtext/add_id.py -------------------------------------------------------------------------------- /tools/openwebtext/blacklist_urls.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tools/openwebtext/blacklist_urls.py -------------------------------------------------------------------------------- /tools/openwebtext/cleanup_dataset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tools/openwebtext/cleanup_dataset.py -------------------------------------------------------------------------------- /tools/openwebtext/cleanup_fix_dataset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tools/openwebtext/cleanup_fix_dataset.py -------------------------------------------------------------------------------- /tools/openwebtext/filter_ngrams.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tools/openwebtext/filter_ngrams.py -------------------------------------------------------------------------------- /tools/openwebtext/find_duplicates.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tools/openwebtext/find_duplicates.py -------------------------------------------------------------------------------- /tools/openwebtext/group_duplicate_url.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tools/openwebtext/group_duplicate_url.py -------------------------------------------------------------------------------- /tools/openwebtext/merge_jsons.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tools/openwebtext/merge_jsons.py -------------------------------------------------------------------------------- /tools/openwebtext/remove_group_duplicates.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tools/openwebtext/remove_group_duplicates.py -------------------------------------------------------------------------------- /tools/preprocess_data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tools/preprocess_data.py -------------------------------------------------------------------------------- /tools/preprocess_data_nmt.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tools/preprocess_data_nmt.py -------------------------------------------------------------------------------- /tools/preprocess_mmdata.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tools/preprocess_mmdata.py -------------------------------------------------------------------------------- /tools/retro/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tools/retro/README.md -------------------------------------------------------------------------------- /tools/retro/cli/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tools/retro/cli/__init__.py -------------------------------------------------------------------------------- /tools/retro/cli/__main__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tools/retro/cli/__main__.py -------------------------------------------------------------------------------- /tools/retro/cli/cli.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tools/retro/cli/cli.py -------------------------------------------------------------------------------- /tools/retro/db/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tools/retro/db/__init__.py -------------------------------------------------------------------------------- /tools/retro/db/build.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tools/retro/db/build.py -------------------------------------------------------------------------------- /tools/retro/db/dataset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tools/retro/db/dataset.py -------------------------------------------------------------------------------- /tools/retro/db/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tools/retro/db/utils.py -------------------------------------------------------------------------------- /tools/retro/examples/preprocess_data.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tools/retro/examples/preprocess_data.sh -------------------------------------------------------------------------------- /tools/retro/examples/pretrain_model.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tools/retro/examples/pretrain_model.sh -------------------------------------------------------------------------------- /tools/retro/external_libs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tools/retro/external_libs.py -------------------------------------------------------------------------------- /tools/retro/index/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tools/retro/index/__init__.py -------------------------------------------------------------------------------- /tools/retro/index/build.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tools/retro/index/build.py -------------------------------------------------------------------------------- /tools/retro/index/factory.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tools/retro/index/factory.py -------------------------------------------------------------------------------- /tools/retro/index/index.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tools/retro/index/index.py -------------------------------------------------------------------------------- /tools/retro/index/indexes/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tools/retro/index/indexes/__init__.py -------------------------------------------------------------------------------- /tools/retro/index/indexes/faiss_base.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tools/retro/index/indexes/faiss_base.py -------------------------------------------------------------------------------- /tools/retro/index/indexes/faiss_par_add.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tools/retro/index/indexes/faiss_par_add.py -------------------------------------------------------------------------------- /tools/retro/index/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tools/retro/index/utils.py -------------------------------------------------------------------------------- /tools/retro/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tools/retro/main.py -------------------------------------------------------------------------------- /tools/retro/query/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tools/retro/query/__init__.py -------------------------------------------------------------------------------- /tools/retro/query/chunk_dataset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tools/retro/query/chunk_dataset.py -------------------------------------------------------------------------------- /tools/retro/query/query.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tools/retro/query/query.py -------------------------------------------------------------------------------- /tools/retro/query/retro_dataset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tools/retro/query/retro_dataset.py -------------------------------------------------------------------------------- /tools/retro/query/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tools/retro/query/utils.py -------------------------------------------------------------------------------- /tools/retro/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tools/retro/utils.py -------------------------------------------------------------------------------- /tools/run_text_generation_server.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tools/run_text_generation_server.py -------------------------------------------------------------------------------- /tools/text_generation_cli.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/Seq1F1B/HEAD/tools/text_generation_cli.py --------------------------------------------------------------------------------