{"id":24208630,"url":"https://github.com/nextml-code/pytorch-lantern-template","last_synced_at":"2026-05-30T20:31:04.042Z","repository":{"id":42002637,"uuid":"312319397","full_name":"nextml-code/pytorch-lantern-template","owner":"nextml-code","description":null,"archived":false,"fork":false,"pushed_at":"2022-10-19T13:27:00.000Z","size":827,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-12-01T21:49:22.888Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nextml-code.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}},"created_at":"2020-11-12T15:35:21.000Z","updated_at":"2021-10-21T11:12:32.000Z","dependencies_parsed_at":"2022-09-24T21:51:24.199Z","dependency_job_id":null,"html_url":"https://github.com/nextml-code/pytorch-lantern-template","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nextml-code/pytorch-lantern-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nextml-code%2Fpytorch-lantern-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nextml-code%2Fpytorch-lantern-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nextml-code%2Fpytorch-lantern-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nextml-code%2Fpytorch-lantern-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nextml-code","download_url":"https://codeload.github.com/nextml-code/pytorch-lantern-template/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nextml-code%2Fpytorch-lantern-template/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33709269,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-30T02:00:06.278Z","response_time":92,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2025-01-14T01:17:38.575Z","updated_at":"2026-05-30T20:31:04.020Z","avatar_url":"https://github.com/nextml-code.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pytorch Lantern Template\n\nProject template to be used together with [pytorch-lantern](https://github.com/nextml-code/pytorch-lantern).\n\n## Usage\n\nSee [pytorch-lantern](https://github.com/nextml-code/pytorch-lantern) for instructions.\n\n## Code structure\n\nWhat each directory in the newly-initialized project contains:\n\n### `data`\n\nProblem formulation in a natural (human-readable) form. Datastreams\nfor training and evaluation.\n\n- Splits data in train / early_stopping / compare\n- Augments data\n- Create informative batches (oversample, stratify, etc)\n- Works with the natural format of the examples\n- Contains train/compare and train/early stopping splits as `.json` files.\n\n### `package`\n\nHelper functions for running inference and downloading model weights if they are not packaged.\n\n### `package/model`\n\nContains the model architecture as well as functions to convert the data from\nhuman-readable to model-readable.\n\n- Preprocessing natural data into model-interpretable data\n- Model\n- Predictions (model output representation with helper functions)\n- Loss\n- Prediction visualization\n\n### `operations`\n\nOperations are scripts that are run via the [guild CLI](https://guild.ai/)\nthat saves artefacts from the run such as model checkpoints.\n\nThese often include:\n\n- `guild run train`\n- `guild run retrain model=xyz`\n- `guild run evaluate model=xyz`\n\n## Development\n\nInstall dev dependencies like cookiecutter.\n\n```bash\npoetry install\n```\n\nSetup test environment\n\n```bash\n./test/create.sh\n```\n\nDownload and prepare dataset\n\n```bash\n./test/prepare.sh\n```\n\nRun tests in any order\n\n```bash\n./test/run.sh\n./test/test.sh\n```\n\nIt can be useful to chain create and run when developing\n\n```bash\n./test/create.sh \u0026\u0026 ./test/run.sh\n```\n\nor create and prepare:\n\n```bash\n./test/create.sh \u0026\u0026 ./test/prepare.sh\n```\n\n### Common issues\n\nYou cannot activate two environments at the same time. You should not have\nthe outer template environment activated (i.e. poetry shell) when running\nthe development scripts above.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnextml-code%2Fpytorch-lantern-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnextml-code%2Fpytorch-lantern-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnextml-code%2Fpytorch-lantern-template/lists"}