Metadata-Version: 2.4
Name: aicoin
Version: 1.0.0
Summary: AICoin 算力赚积分客户端 - 提供GPU/CPU算力运行AI模型，自动赚取AICoin积分。支持所有ModelScope模型。
Author-email: AICoin Team <aicoin@proton.me>
License: MIT
Project-URL: Homepage, https://aic.aicq.online
Project-URL: Repository, https://github.com/ctz168/aicoin
Project-URL: Documentation, https://aic.aicq.online
Project-URL: Bug Tracker, https://github.com/ctz168/aicoin/issues
Project-URL: PyPI, https://pypi.org/project/aicoin/
Keywords: aicoin,ai,compute,inference,gpu,cpu,modelscope,qwen,deepseek,distributed-computing,credits,token-billing
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Topic :: System :: Distributed Computing
Classifier: Framework :: AsyncIO
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: httpx>=0.27.0
Provides-Extra: inference
Requires-Dist: torch>=2.0.0; extra == "inference"
Requires-Dist: transformers>=4.36.0; extra == "inference"
Requires-Dist: accelerate>=0.25.0; extra == "inference"
Requires-Dist: sentencepiece>=0.1.99; extra == "inference"
Requires-Dist: safetensors>=0.4.0; extra == "inference"
Provides-Extra: gpu
Requires-Dist: nvidia-ml-py3>=7.352.0; extra == "gpu"
Provides-Extra: all
Requires-Dist: aicoin[gpu,inference]; extra == "all"
Dynamic: license-file

# AICoin 算力赚积分客户端

<p align="center">
  <strong>提供GPU/CPU算力，运行AI模型推理任务，自动赚取AICoin积分</strong>
</p>

<p align="center">
  <a href="https://aic.aicq.online">🌐 平台地址</a> ·
  <a href="https://github.com/ctz168/aicoin">📦 GitHub</a> ·
  <a href="https://pypi.org/project/aicoin/">📋 PyPI</a>
</p>

---

## ✨ 特性

- 🚀 **一键赚积分** - 安装客户端，启动服务，自动赚积分
- 🤖 **全模型支持** - 支持 ModelScope 上所有 AI 模型（Qwen、DeepSeek、LLaMA、ChatGLM等）
- 💰 **公平分配** - API调用收入的90%归算力提供方，10%平台手续费
- 📈 **无每日上限** - 算力越多，赚的积分越多，没有上限
- 🛡️ **防作弊** - 内置反作弊机制，保护每位参与者权益
- 🔌 **OpenAI兼容** - API接口兼容OpenAI格式，轻松对接现有应用

## 📦 安装

```bash
# 基础安装（仅客户端）
pip install aicoin

# 带GPU监控
pip install aicoin[gpu]

# 带AI推理引擎（GPU推荐）
pip install aicoin[inference]

# 全部安装
pip install aicoin[all]
```

## 🚀 快速开始

### 1. 登录 / 注册

```bash
# 注册新账号（赠送100 AICoin积分）
aicoin register --email you@email.com --password yourpassword

# 登录已有账号
aicoin login --email you@email.com --password yourpassword
```

### 2. 查看积分余额

```bash
aicoin balance
# 💰 AICoin 积分余额: 100.00
```

### 3. 提供算力赚积分

```bash
# 注册GPU节点
aicoin node register --name my-rtx4090 --type gpu --gpu "NVIDIA RTX 4090" --memory 24

# 启动算力服务（以Qwen2.5-0.5B为例）
aicoin serve --model qwen2.5-0.5b --gpu
```

### 4. 调用AI模型

```bash
# 调用模型
aicoin call --model qwen2.5-0.5b "请介绍一下你自己"

# 查看可用模型
aicoin models
```

### 5. 其他命令

```bash
# 查看交易记录
aicoin transactions

# 充值积分 (1 RMB = 100 AICoin)
aicoin recharge --amount 10 --method alipay

# 查看赚积分统计
aicoin stats

# 查看当前登录信息
aicoin whoami
```

## 🐳 Docker 方式

```bash
docker run -d --gpus all ctz168/aicoin-client:latest \
  --email you@email.com --model qwen2.5-0.5b
```

## 📊 算力权重

| 模型 | GPU权重 | CPU权重 |
|------|---------|---------|
| Qwen2.5-0.5B | ×1.0 | ×0.3 |
| Qwen2.5-1.5B | ×3.0 | ×0.9 |
| Qwen2.5-7B | ×12.0 | ×3.6 |
| Qwen2.5-14B | ×24.0 | ×7.5 |
| Qwen2.5-32B | ×55.0 | - |
| Qwen2.5-72B | ×120.0 | - |
| DeepSeek-V2 | ×100.0 | - |

模型越大，权重越高，收益越多！

## 📝 积分规则

- 1 RMB = 100 AICoin积分
- 注册赠送 100 AICoin积分
- 算力分数 = 计算利用率(30%) + 吞吐量(30%) + 在线时间(20%) + 完成率(20%)
- API调用收入: 90% 归算力提供方，10% 平台手续费
- 最小交易费用: 0.0000001 AICoin
- **每日赚积分无上限！**

## 📄 License

MIT License
