{"id":16795360,"url":"https://github.com/buaadreamer/dlpy","last_synced_at":"2025-06-10T13:05:49.175Z","repository":{"id":213537985,"uuid":"733745400","full_name":"BUAADreamer/DLPy","owner":"BUAADreamer","description":"Programming Language for Deep Learning in Python ","archived":false,"fork":false,"pushed_at":"2023-12-25T11:50:54.000Z","size":70,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-31T17:04:02.090Z","etag":null,"topics":["baichuan2","chatbot","deep-learning","gpt-2","huggingface","language-model","mlp","programming-language","python3","transformers"],"latest_commit_sha":null,"homepage":"","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/BUAADreamer.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}},"created_at":"2023-12-20T03:03:46.000Z","updated_at":"2023-12-23T03:03:56.000Z","dependencies_parsed_at":"2023-12-25T12:46:34.973Z","dependency_job_id":"b248a41e-420a-468d-a160-9798a342a78f","html_url":"https://github.com/BUAADreamer/DLPy","commit_stats":null,"previous_names":["buaadreamer/dlpy"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BUAADreamer%2FDLPy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BUAADreamer%2FDLPy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BUAADreamer%2FDLPy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BUAADreamer%2FDLPy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BUAADreamer","download_url":"https://codeload.github.com/BUAADreamer/DLPy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BUAADreamer%2FDLPy/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259081015,"owners_count":22802400,"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":["baichuan2","chatbot","deep-learning","gpt-2","huggingface","language-model","mlp","programming-language","python3","transformers"],"created_at":"2024-10-13T09:16:07.769Z","updated_at":"2025-06-10T13:05:49.155Z","avatar_url":"https://github.com/BUAADreamer.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dlpy: 面向深度学习的Python\n\n## 环境配置\n```shell\npip3 install -r requirements.txt\nalias dlpy='python3 main.py' #如果需要cli直接运行\n```\n\n## 模型下载\n\n将模型下载到checkpoints目录下或者自定义目录下\n\n## 代码示例\n\n`example/`目录下有常见dlpy代码示例，下面以baichuan2的聊天机器人为例：\n```python\nmodel:transformer='checkpoints/baichuan2-7b-chat':'dataset/wiki.txt';\nwhile True{\n    print('User:');\n    x=scan();\n    print('Bot:');\n    chat model x;\n}\n```\n\n## 代码运行\n```shell\npython3 main.py examples/sample.dlpy\n#快捷运行\ndlpy example/sample.dlpy\n```\n\n## 编译器完整运行结果\n```shell\npython3 test.py examples/if.dlpy\n```\n\n## 致谢\n本项目基于[ply](https://github.com/dabeaz/ply)，参考了[simplepy](https://github.com/kgruszowski/simplepy)，感谢这些库的作者！！","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbuaadreamer%2Fdlpy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbuaadreamer%2Fdlpy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbuaadreamer%2Fdlpy/lists"}