{"id":23739863,"url":"https://github.com/p1atdev/dartrs","last_synced_at":"2026-02-09T17:31:37.869Z","repository":{"id":238135972,"uuid":"793630536","full_name":"p1atdev/dartrs","owner":"p1atdev","description":null,"archived":false,"fork":false,"pushed_at":"2024-05-12T14:10:15.000Z","size":90,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-04T14:49:15.332Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/p1atdev.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-04-29T15:25:48.000Z","updated_at":"2024-06-12T09:38:29.000Z","dependencies_parsed_at":"2025-03-04T14:45:24.287Z","dependency_job_id":"6cd073de-ad2e-47b9-9821-469a3660d168","html_url":"https://github.com/p1atdev/dartrs","commit_stats":null,"previous_names":["p1atdev/dartrs"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/p1atdev/dartrs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p1atdev%2Fdartrs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p1atdev%2Fdartrs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p1atdev%2Fdartrs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p1atdev%2Fdartrs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/p1atdev","download_url":"https://codeload.github.com/p1atdev/dartrs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p1atdev%2Fdartrs/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267400723,"owners_count":24081187,"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","status":"online","status_checked_at":"2025-07-27T02:00:11.917Z","response_time":82,"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":"2024-12-31T09:39:35.403Z","updated_at":"2026-02-09T17:31:34.056Z","avatar_url":"https://github.com/p1atdev.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dartrs\n\n\u003e [!WARNING]\n\u003e wip\n\n## Python\n\n```bash\npip install -U dartrs\n```\n\n```py\nfrom dartrs.dartrs import DartTokenizer\nfrom dartrs.utils import get_generation_config\nfrom dartrs.v2 import (\n    compose_prompt,\n    MixtralModel,\n    V2Model,\n)\nimport time\nimport os\n\nMODEL_NAME = \"p1atdev/dart-v2-moe-sft\"\n\nmodel = MixtralModel.from_pretrained(MODEL_NAME, dtype=\"fp16\")\ntokenizer = DartTokenizer.from_pretrained(MODEL_NAME)\n\nconfig = get_generation_config(\n    prompt=compose_prompt(\n        copyright=\"vocaloid\",\n        character=\"hatsune miku\",\n        rating=\"general\", # sfw, general, sensitive, nsfw, questionable, explicit\n        aspect_ratio=\"tall\", # ultra_wide, wide, square, tall, ultra_tall\n        length=\"medium\", # very_short, short, medium, long, very_long\n        identity=\"none\", # none, lax, strict\n        prompt=\"1girl, cat ears\",\n    ),\n    tokenizer=tokenizer,\n    seed=42,\n)\n\nstart = time.time()\noutput = model.generate(config)\nend = time.time()\n\nprint(output)\nprint(f\"Time taken: {end - start:.2f}s\")\n# Output:\n# cowboy shot, detached sleeves, expressionless, from side, hair ornament, halftone, hairclip, holding, limited palette, long hair, looking at viewer, miniskirt, necktie, pleated skirt, shirt, simple background, skirt, sleeveless, sleeveless shirt, straight-on, thighhighs, twintails, very long hair, zettai ryouiki\n# Time taken: 0.22s\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fp1atdev%2Fdartrs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fp1atdev%2Fdartrs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fp1atdev%2Fdartrs/lists"}