{"id":22202456,"url":"https://github.com/promptlycode/inline-completion-model","last_synced_at":"2025-04-12T04:53:28.178Z","repository":{"id":264561288,"uuid":"893681666","full_name":"PromptlyCode/inline-completion-model","owner":"PromptlyCode","description":"PromptlyCode inline completion model by PyTorch","archived":false,"fork":false,"pushed_at":"2024-12-19T11:47:04.000Z","size":940,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-12T04:53:21.148Z","etag":null,"topics":["ai","deep-learning","python","pytorch","seq2seq","transformers","transformers-models"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PromptlyCode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2024-11-25T02:37:19.000Z","updated_at":"2025-01-14T18:03:22.000Z","dependencies_parsed_at":"2024-12-02T07:19:47.009Z","dependency_job_id":null,"html_url":"https://github.com/PromptlyCode/inline-completion-model","commit_stats":null,"previous_names":["promptlycode/inline-completion-model"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PromptlyCode%2Finline-completion-model","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PromptlyCode%2Finline-completion-model/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PromptlyCode%2Finline-completion-model/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PromptlyCode%2Finline-completion-model/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PromptlyCode","download_url":"https://codeload.github.com/PromptlyCode/inline-completion-model/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248519472,"owners_count":21117757,"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":["ai","deep-learning","python","pytorch","seq2seq","transformers","transformers-models"],"created_at":"2024-12-02T16:24:39.583Z","updated_at":"2025-04-12T04:53:28.158Z","avatar_url":"https://github.com/PromptlyCode.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PromptlyCode inline completion model\n* PromptlyCode inline completion model by PyTorch\n\n## Features\n\n- [ ]  Tab automatically complete code and predict code use vscode inline completion\n\n## Init\n\n* Setup python env\n```sh\nconda create -n inline-completion-model python=3.11\nconda activate  inline-completion-model\npoetry install\n```\n\n## Seq2Seq model\n\n* Input, Output Prediction\n\n```\nInput: \"def func(x):\"\nOutput Prediction: \"return x * x\"\n\nInput: \"for i in range(n):\"\nTarget: \"sum += i\"\n\n(['def func(x):', 'x = x + 1', 'return x'],\n['x = x + 1', 'return x', 'print(func(5))'])\n```\n\n* Process Flowchart\n\n```txt\nParse Python Files ─\u003e Build Dataset ─\u003e Train Model ─\u003e Test Model\n       │                     │                │               │\n   File Parsing        Vocabulary      Training Loop       Predict\n       │               Creation            ↓                  ↓\n     Input/Target Pairs ─\u003e DataLoader ─\u003e Loss Optimization ─\u003e Generate Output\n\n```\n\n## Achieve the target effect\n![](./demo/eg1.png)\n![](./demo/eg2.png)\n![](./demo/eg3.png)\n![](./demo/eg4.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpromptlycode%2Finline-completion-model","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpromptlycode%2Finline-completion-model","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpromptlycode%2Finline-completion-model/lists"}