{"id":19054703,"url":"https://github.com/ssbuild/poetry_training","last_synced_at":"2025-04-24T03:27:26.160Z","repository":{"id":117215253,"uuid":"602077956","full_name":"ssbuild/poetry_training","owner":"ssbuild","description":"诗歌模型预训练","archived":false,"fork":false,"pushed_at":"2023-04-28T08:14:27.000Z","size":147,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-18T12:17:56.675Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ssbuild.png","metadata":{"files":{"readme":"README.MD","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-02-15T13:01:17.000Z","updated_at":"2023-03-21T06:44:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"c9494038-d450-43aa-8cc7-89d85460cb1a","html_url":"https://github.com/ssbuild/poetry_training","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssbuild%2Fpoetry_training","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssbuild%2Fpoetry_training/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssbuild%2Fpoetry_training/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssbuild%2Fpoetry_training/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ssbuild","download_url":"https://codeload.github.com/ssbuild/poetry_training/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250554292,"owners_count":21449577,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T23:39:26.949Z","updated_at":"2025-04-24T03:27:26.151Z","avatar_url":"https://github.com/ssbuild.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## 安装\r\n\r\n- pip install -U deep_training \u003e= 0.1.0\r\n- (PaLM,LaMDA 修改默认激活函数)最小版本要求 0.1.0\r\n\r\n## 更新详情\r\n\r\n- [deep_training](https://github.com/ssbuild/deep_training)\r\n\r\n## 深度学习常规任务例子\r\n\r\n- [pytorch-task-example](https://github.com/ssbuild/pytorch-task-example)\r\n- [tf-task-example](https://github.com/ssbuild/tf-task-example)\r\n\r\n## 支持模型\r\n\r\n    gpt2 \r\n    laMDA\r\n    LLaMA\r\n    PaLM\r\n    t5\r\n    unilm\r\n    t5decoder\r\n\r\n\r\n## 导出onnx模型 通常只需要三步\r\n\r\n    第一步，参数配置 convert_onnx = True\r\n    第二步 加载权重例子\r\n    model = MyTransformer.load_from_checkpoint('./best.pt', config=config, model_args=model_args,\r\n                                                   training_args=training_args)\r\n    第三步 #导出onnx模型\r\n    model.convert_to_onnx('./best.onnx')\r\n\r\n## 多卡训练策略 strategy , 通常只需要一步\r\n    修改参数配置 devices = N \r\n\r\n    # Available names: bagua, colossalai, ddp, ddp_find_unused_parameters_false, ddp_fork,\r\n    # ddp_fork_find_unused_parameters_false, ddp_fully_sharded,\r\n    # ddp_notebook, ddp_notebook_find_unused_parameters_false, ddp_sharded,\r\n    # ddp_sharded_find_unused_parameters_false, ddp_sharded_spawn,\r\n    # ddp_sharded_spawn_find_unused_parameters_false,\r\n    # ddp_spawn, ddp_spawn_find_unused_parameters_false,\r\n    # deepspeed, deepspeed_stage_1, deepspeed_stage_2, deepspeed_stage_2_offload,\r\n    # deepspeed_stage_3, deepspeed_stage_3_offload, deepspeed_stage_3_offload_nvme,\r\n    # dp, fsdp, fsdp_native, fsdp_native_full_shard_offload, horovod, hpu_parallel,\r\n    # hpu_single, ipu_strategy, single_device, single_tpu, tpu_spawn, tpu_spawn_debug\"\r\n\r\n## 愿景\r\n\r\n创建一个模型工厂, 轻量且高效的训练程序，让训练模型更容易,更轻松上手。\r\n\r\n## 交流\r\n\r\nQQ交流群：185144988\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fssbuild%2Fpoetry_training","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fssbuild%2Fpoetry_training","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fssbuild%2Fpoetry_training/lists"}