Skip to content

Add decimal CPU support and China-friendly Dockerfile params#69

Merged
Iamlovingit merged 2 commits intoYuan-lab-LLM:mainfrom
riverfor:dev_river
Apr 14, 2026
Merged

Add decimal CPU support and China-friendly Dockerfile params#69
Iamlovingit merged 2 commits intoYuan-lab-LLM:mainfrom
riverfor:dev_river

Conversation

@riverfor
Copy link
Copy Markdown
Contributor

The CPU supports decimals, allowing development and testing to run even in environments with limited CPU resources; added some parameters to the Dockerfile to facilitate building within China.

- Change cpu_cores from int to float64 in backend models, handlers, services
- Update frontend CreateInstancePage to accept decimal CPU values (step 0.1)
- Add DB migration 009_cpu_cores_decimal.sql for DECIMAL(10,2) columns
- Update deployment manifests (k8s, k3s, incluster) schema definitions
- Add GOFLAGS/GOPROXY/GOSUMDB build args to Dockerfile so that
  --build-arg values passed by build scripts take effect during go mod download
@Iamlovingit
Copy link
Copy Markdown
Collaborator

@riverfor Thanks, great job.

@Iamlovingit
Copy link
Copy Markdown
Collaborator

/lgtm

@Iamlovingit Iamlovingit merged commit 4a3081e into Yuan-lab-LLM:main Apr 14, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants