{"id":28639457,"url":"https://github.com/scisharp/ggmlsharp","last_synced_at":"2025-06-12T19:40:34.255Z","repository":{"id":240168870,"uuid":"801799360","full_name":"SciSharp/GGMLSharp","owner":"SciSharp","description":"Use GGML with C#/.NET ","archived":false,"fork":false,"pushed_at":"2024-07-24T01:11:55.000Z","size":30496,"stargazers_count":13,"open_issues_count":0,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-07-24T03:39:13.747Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","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/SciSharp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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-05-17T00:03:12.000Z","updated_at":"2024-07-24T03:39:15.197Z","dependencies_parsed_at":"2024-07-28T01:00:49.499Z","dependency_job_id":null,"html_url":"https://github.com/SciSharp/GGMLSharp","commit_stats":null,"previous_names":["scisharp/ggmlsharp"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SciSharp/GGMLSharp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SciSharp%2FGGMLSharp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SciSharp%2FGGMLSharp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SciSharp%2FGGMLSharp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SciSharp%2FGGMLSharp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SciSharp","download_url":"https://codeload.github.com/SciSharp/GGMLSharp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SciSharp%2FGGMLSharp/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259520285,"owners_count":22870415,"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":[],"created_at":"2025-06-12T19:40:26.262Z","updated_at":"2025-06-12T19:40:34.243Z","avatar_url":"https://github.com/SciSharp.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GGMLSharp Introduction\n\nGGMLSharp is a API for C# to use [ggml](https://github.com/ggerganov/ggml).\u003c/br\u003e\nggml is a wonderful C-language machine-learning tool, and now you can use it with C#.\u003c/br\u003e\nGGMLSharp contains all ggml shared libs and some demos. \n\n## Feature\n\n- Written in C# only\n- Only depends on ggml\n- DotNet 462 Support!\n- All Demos can use safe code only!\n\n## Demos\n\n### mnist_cpu\n\n  [mnist_cpu](./Demos/MNIST_CPU/) is a basic demo for learning how to use GGMLSharp. It contains two Linears.\n\n### mnist_cnn\n\n  [mnist_cnn](./Demos/MNIST_CNN/) is a demos show how to use convolution. In this demo, there are two conv2d and pool max.\n\n### mnist_train\n\n  [mnist_train](./Demos/MNIST_Train/) is a demo shows how to train a model. The model is same as mnist_cpu.\n\n### simple_backend\n\n  [simple_backend](./Demos/SimpleBackend/) shows how to use GGMLSharp with cuda. In this demo, you shold take ggml.dll for cuda. You can get it with the help of [ggml](https://github.com/ggerganov/ggml) or you can download it from [llama.cpp](https://github.com/ggerganov/llama.cpp/releases).\n\n### magika\n\n[magika](./Demos/Magika/) is a useful tool from google. It can help to get the style of a file in high speed.\n\n### Converter\n\n[Converter](./Demos/Converter/) is a useful tool for converting llm models from bin/ckpt/safetensors to gguf without any python environment. \n\n### ModelLoader\n\n[ModelLoader](./Demos/ModelLoader/) is a tool for loading safetensors or pickle file directly from binary data. This demo can help to learn how to read a model file without any help of python.\n\n### SAM\n\n[SAM](./Demos/SAM/) (Segment Anything Model) can help us seprate things from an image.\n\n### TestOpt\n\n[TestOpt](./Demos/TestOpt/) is a basic demo for optimizar.\n\n### Yolov3Tiny\n\n[Yolov3Tiny](./Demos/Yolov3Tiny/) is a Demo shows how to implement YOLO object detection with ggml using pretrained model. The weight have been converted to gguf.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscisharp%2Fggmlsharp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscisharp%2Fggmlsharp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscisharp%2Fggmlsharp/lists"}