{"id":30898117,"url":"https://github.com/frederik-uni/rustyctranslate2","last_synced_at":"2025-09-09T01:05:51.465Z","repository":{"id":163592724,"uuid":"639060286","full_name":"frederik-uni/rustyctranslate2","owner":"frederik-uni","description":"use ctranslate2 in rust","archived":false,"fork":false,"pushed_at":"2025-07-02T16:02:53.000Z","size":38,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-04T17:39:06.078Z","etag":null,"topics":["ctranslate2","rust-library","translation"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/frederik-uni.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-05-10T17:12:53.000Z","updated_at":"2025-07-02T16:02:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"0ecedb96-9d00-4e20-b3ba-affadd57c21e","html_url":"https://github.com/frederik-uni/rustyctranslate2","commit_stats":null,"previous_names":["frederik-uni/rustyctranslate2","justfrederik/rustyctranslate2"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/frederik-uni/rustyctranslate2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frederik-uni%2Frustyctranslate2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frederik-uni%2Frustyctranslate2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frederik-uni%2Frustyctranslate2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frederik-uni%2Frustyctranslate2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/frederik-uni","download_url":"https://codeload.github.com/frederik-uni/rustyctranslate2/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frederik-uni%2Frustyctranslate2/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274231810,"owners_count":25245855,"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-09-08T02:00:09.813Z","response_time":121,"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":["ctranslate2","rust-library","translation"],"created_at":"2025-09-09T01:05:50.079Z","updated_at":"2025-09-09T01:05:51.425Z","avatar_url":"https://github.com/frederik-uni.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rustyctranslate2\n\n## Requirements\n- cmake\n- git\n\n### MacOS arm64\n/\n\n### MacOS x86_64\n- oneapi\n- onednn\n\n### Linux arm64\n- libopenblas-dev\n\n### Linux x86_64\n- oneapi\n- oneapi-dnnl/onednn\n- openmpi\n- cuda\n- nncl\n\n### Windows x86_64\n- oneapi\n- onednn\n- cuda\n- cuDNN\n\n## Info\nA simple project that wraps around [CTranslate2](https://github.com/OpenNMT/CTranslate2)\n\nhttps://github.com/OpenNMT/CTranslate2/tree/master/python/tools\n\nHow to use?\n```rs\nlet model = CTranslator::new(PathBuf::from_str(\"...\").unwrap(), false);\nlet tokens = [\"▁H\", \"ell\", \"o\", \"▁world\", \"!\"].into_iter().map(|v| v.to_string()).collect();\nlet v = model.unwrap().translate_batch(vec![tokens], None, BatchType::Example);\nprintln!(\"{:?}\", v);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrederik-uni%2Frustyctranslate2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffrederik-uni%2Frustyctranslate2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrederik-uni%2Frustyctranslate2/lists"}