{"id":18689680,"url":"https://github.com/mrseanryan/csfy","last_synced_at":"2025-08-02T22:06:47.315Z","repository":{"id":243260523,"uuid":"811938082","full_name":"mrseanryan/csfy","owner":"mrseanryan","description":"Train a simple text classifier and predict labels - supports ONNX output for performance, language-neutral","archived":false,"fork":false,"pushed_at":"2024-06-24T15:37:18.000Z","size":145,"stargazers_count":1,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-18T21:35:09.554Z","etag":null,"topics":["classification-model","classifier","classifier-model","ml","ml-training"],"latest_commit_sha":null,"homepage":"https://medium.com/p/9fd7003000fc","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/mrseanryan.png","metadata":{"files":{"readme":"README.gpu.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,"zenodo":null}},"created_at":"2024-06-07T15:50:04.000Z","updated_at":"2025-03-03T23:12:16.000Z","dependencies_parsed_at":"2024-11-07T10:45:10.617Z","dependency_job_id":"c7c7dd8f-6ebf-4a56-aa1d-20e1bdb00f96","html_url":"https://github.com/mrseanryan/csfy","commit_stats":null,"previous_names":["mrseanryan/csfy"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mrseanryan/csfy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrseanryan%2Fcsfy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrseanryan%2Fcsfy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrseanryan%2Fcsfy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrseanryan%2Fcsfy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mrseanryan","download_url":"https://codeload.github.com/mrseanryan/csfy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrseanryan%2Fcsfy/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268464864,"owners_count":24254196,"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-08-02T02:00:12.353Z","response_time":74,"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":["classification-model","classifier","classifier-model","ml","ml-training"],"created_at":"2024-11-07T10:44:37.892Z","updated_at":"2025-08-02T22:06:47.254Z","avatar_url":"https://github.com/mrseanryan.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\r\n### Using GPU with the local model\r\n\r\nIf you have an NVIDIA graphics card, then you can run part or all of the model (depending on the card's RAM) on the GPU,\r\nwhich has much higher level of parallelism than the typical CPU.\r\n\r\nRequired:\r\n\r\n- latest NVIDIA graphic driver\r\n- up to date version of CUDA\r\n\r\n#### Tip: if you get errors when running the model, like this:\r\n\r\n```\r\n\u003e\u003e Cuda error: no kernel image is available for execution on the device\r\n```\r\n\r\nThen recommend to build ctransformers locally.\r\n\r\nThis is actually quite simple:\r\n\r\n```\r\npip3 uninstall ctransformers\r\npip3 install ctransformers --no-binary ctransformers # use --no-binary to force a local build. This ensures that the local version of CUDA and NVIDIA graphics driver will be used.\r\n```\r\n\r\nYou can tweak the settings in `config.py`.\r\n\r\n# More details\r\n\r\n## local via ctransformers\r\n- [ctransformers](https://github.com/marella/ctransformers).\r\n\r\n## local via pytorch\r\n- [pytorch](https://pytorch.org/get-started/locally/)\r\n- [Building pytorch from scratch](https://github.com/pytorch/pytorch#from-source)\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrseanryan%2Fcsfy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrseanryan%2Fcsfy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrseanryan%2Fcsfy/lists"}