{"id":24287979,"url":"https://github.com/ghackenberg/ai-experiments","last_synced_at":"2026-04-16T16:03:47.047Z","repository":{"id":272598631,"uuid":"917137149","full_name":"ghackenberg/ai-experiments","owner":"ghackenberg","description":"This repository demonstrates the use of AI libraries and tools","archived":false,"fork":false,"pushed_at":"2025-01-16T09:50:42.000Z","size":142,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-05T23:27:22.012Z","etag":null,"topics":["ai","ml","python","pytorch","transformers"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ghackenberg.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","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":"2025-01-15T12:30:23.000Z","updated_at":"2025-01-16T09:50:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"7937e837-25ef-40a9-aaf1-89969cfe7777","html_url":"https://github.com/ghackenberg/ai-experiments","commit_stats":null,"previous_names":["ghackenberg/ai-experiments"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ghackenberg/ai-experiments","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghackenberg%2Fai-experiments","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghackenberg%2Fai-experiments/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghackenberg%2Fai-experiments/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghackenberg%2Fai-experiments/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ghackenberg","download_url":"https://codeload.github.com/ghackenberg/ai-experiments/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghackenberg%2Fai-experiments/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27502925,"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-12-04T02:00:07.142Z","response_time":60,"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":["ai","ml","python","pytorch","transformers"],"created_at":"2025-01-16T09:34:24.200Z","updated_at":"2025-12-04T16:07:41.337Z","avatar_url":"https://github.com/ghackenberg.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AI Experiments\n\nThis repository contains my personal experiments with artificial intelligence libraries and tools.\nIn the following, you find some example applications, which I have developed during my AI learning journey.\nIt is amazing to see, how easy AI can be integrated into software applications nowadays.\n\n## Examples\n\nHere is an overview of the examples contained in this repository.\n\n### 🧑‍💻 [Text Generation](./Sources/text-generation.py)\n\nThis first example demonstrates the use of LLaMa 3.2 for providing a ChatGPT-like experience on your local computer in the command line.\n\n![](./Screenshots/text-generation.png)\n\n### 🧑‍💻 [Image Generation](./Sources/image-generation.py)\n\nThis second example demonstrates the use of Stable Diffusion 1.5 for generating images from text prompts on your local computer in the command line.\n\n![](./Screenshots/image-generation.png)\n\nThe above prompt generated the following image.\nNote that with other pretrained diffusion models and prompts better results probably can be achieved.\n\n![](./Images/glasshouse.jpg)\n\n### 🧑‍💻 *More*\n\n*... coming soon*\n\n## Prerequisites\n\nHere is a list of prerequisites, which are required for running the examples.\n\n### 🧩 Python\n\nInterpreter for the Python programming language.\n\n*See https://www.python.org/*\n\n### 🧩 PyTorch\n\nGPU-based tensor computation library for the Python programming language.\n\n*See https://github.com/pytorch/pytorch*\n\n```\n# ... with CUDA 11.8 (NVIDIA)\npip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118\n\n# ... with CUDA 12.1 (NVIDIA)\npip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu121\n\n# ... with CUDA 12.4 (NVIDIA)\npip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu124\n\n# ... with ROCm 6.2 (AMD)\npip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/rocm6.2\n```\n\n### 🧩 Transformers\n\nDownloading and using pre-trained transformer models for generating text.\n\n*See https://github.com/huggingface/transformers*\n\n```\npip install transformers\n```\n\n### 🧩 Diffusers\n\nDownloading and using pre-trained diffusion models for generating image, video, and audio.\n\n```\npip install diffusers[torch]\n```\n\n*See https://github.com/huggingface/diffusers*\n\n### 🧩 Accelerate\n\nMulti-GPU training on top of PyTorch.\n\n*See https://github.com/huggingface/accelerate*\n\n```\npip install accelerate\n```\n\n### 🧩 Protobuf\n\nLanguage-neutral and platform-independent serialization and deserialization of data structures.\n\n*See https://github.com/protocolbuffers/protobuf*\n\n```\npip install protobuf\n```\n\n### 🧩 SentencePiece\n\nUnsupervised text tokenizer and detokenizer for neural network based text generation.\n\n*See https://github.com/google/sentencepiece*\n\n```\npip install sentencepiece\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghackenberg%2Fai-experiments","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fghackenberg%2Fai-experiments","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghackenberg%2Fai-experiments/lists"}