{"id":22654176,"url":"https://github.com/humandataincome/ipai","last_synced_at":"2025-04-12T04:12:49.557Z","repository":{"id":144699628,"uuid":"607872598","full_name":"humandataincome/ipai","owner":"humandataincome","description":"InterPlanetary Artificial Intelligence (IPAI): store your personal AI model leveraging on InterPlanetary Data Wallet (IPDW). It enables to build a real censorship resistant research swarm without centralised repositories. Browser based inferences, Personal fine-tuning, Zero-backend privacy, and much more...","archived":false,"fork":false,"pushed_at":"2024-08-22T14:31:56.000Z","size":2097,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-12T04:12:43.671Z","etag":null,"topics":["ai","browser","gpt","ipfs","javascript","ml","node","openai","p2p"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/humandataincome.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":"2023-02-28T21:06:40.000Z","updated_at":"2024-08-22T14:31:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"3791e72e-d353-48d0-8792-3b347467740e","html_url":"https://github.com/humandataincome/ipai","commit_stats":null,"previous_names":["humandataincome/ipai","ansi-code/ipai"],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/humandataincome%2Fipai","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/humandataincome%2Fipai/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/humandataincome%2Fipai/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/humandataincome%2Fipai/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/humandataincome","download_url":"https://codeload.github.com/humandataincome/ipai/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248514205,"owners_count":21116903,"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":["ai","browser","gpt","ipfs","javascript","ml","node","openai","p2p"],"created_at":"2024-12-09T09:33:53.315Z","updated_at":"2025-04-12T04:12:49.525Z","avatar_url":"https://github.com/humandataincome.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ipai (InterPlanetary Artificial Intelligence)\n\nInterPlanetary Artificial Intelligence (IPAI): store your personal AI model leveraging on InterPlanetary Data Wallet (\nIPDW). It enables to build a real censorship resistant research swarm without centralised repositories. Browser based\ninferences, Personal fine-tuning, Zero-backend privacy, and much more.\n\n\u003cp align=\"center\"\u003e\u003cem\u003eCheck it out the demo distributed via ipfs at \u003ca href=\"https://ipfs.io/ipfs/QmW98fovtPYpdRHTyCM9v4qhe151Dn8iNPofibQ2e5T1bq/\"\u003ehttps://ipfs.io/ipfs/QmW98fovtPYpdRHTyCM9v4qhe151Dn8iNPofibQ2e5T1bq/\u003c/a\u003e\u003c/em\u003e\u003c/p\u003e\n\n![Logo](demo/gpt/assets/demo.png)\n\n\u003cp align=\"center\"\u003e\u003cem\u003eAlternative access via other gateway or directly via ipfs:// protocol on supported browser using this IPFS CID QmW98fovtPYpdRHTyCM9v4qhe151Dn8iNPofibQ2e5T1bq/\u003c/em\u003e\u003c/p\u003e\n\n\n## Features\n\n- Store your personal AI model on the InterPlanetary Data Wallet (IPDW)\n- Publish a without centralized repositories\n- Take advantage of browser-based inferences\n- Personalize your AI model through fine-tuning\n- Enjoy zero-backend privacy for your AI model\n- And much more!\n\n## Getting Started\n\nTo get started with IPAI, you will need to follow these steps:\n\nClone the repository:\n```bash\n$ git clone https://github.com/ansi-code/ipai.git\n```\n\nInstall the required dependencies:\n```bash\n$ npm install\n```\n\nFollow the instructions provided in the IPDW repository to set up your wallet.\n\nStart using IPAI.\n\n```js\nconst model = await GPTNeoXForCausalLm.Load(\"ipfs://QmecpDvGdWfcKw7BM4nxyEb7TB856sTY1MqY1dCR45rWjv\", console.log);\nconst tokenizer = await GPT2Tokenizer.Load('ipfs://QmRnFHciVJxtpTtGktB3vLRMMxutEaAybXvwobXKLxRpd9', 'ipfs://QmQWBu2Cd4KnBGeeT9dx7JSG6v9VJg1QeiDg3EbBtSLKkD', console.log);\n\nconst prompt = \"In a shocking finding, scientists discovered a herd of unicorns living in a remote, previously unexplored valley, in the Andes Mountains.\\nEven more surprising to the researchers was the fact that the unicorns spoke perfect English.\";\nconst inputIds = tokenizer.encode(prompt);\n\nconst genTokens = await model.generate(inputIds, true, 0.9, 1, 1, 150, async t =\u003e {\n    process.stdout.write(tokenizer.decode([t]))\n});\n\nconst genText = tokenizer.decode(genTokens);\nconsole.log(\"Final text:\", genText);\n```\n\n## Contributing\n\nWe welcome contributions to IPAI! If you would like to contribute, please follow these steps:\n\n1. Fork the repository\n2. Create a new branch for your changes\n3. Commit your changes and open a pull request\n4. Support\n\nIf you need help using IPAI or have any questions, please open an issue in this repository and we will be happy to assist you.\n\n## TODO\n\n- Migrate matrices computation to NumTs (https://github.com/ansi-code/numts)\n- Custom sparse matrices backend\n\n## License\n\nThis project is licensed under the Apache 2.0 License. See the [LICENSE](./LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhumandataincome%2Fipai","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhumandataincome%2Fipai","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhumandataincome%2Fipai/lists"}