Asep Haryana Saputra
b1e99643f6
fix: allow ONNX model in Docker context
2026-05-23 10:48:01 +00:00
Asep Haryana Saputra and Claude Code
ba33bc1f23
fix: make Rust ML Docker build include ONNX runtime assets
...
- Add 'download-binaries' feature to ort crate in Cargo.toml to ensure ONNX Runtime binaries are downloaded during build
- Update .dockerignore to allow Machine_Learning/model/model.onnx through build context while still excluding other generated model artifacts (saved_model, tfjs_model, tflite)
- Dockerfile can now successfully copy model.onnx at runtime
Co-Authored-By: Claude Code <noreply@anthropic.com >
2026-05-23 10:44:32 +00:00
Asep Haryana Saputra
d33f334dc1
build: containerize Rust ML service
2026-05-23 10:38:58 +00:00
Asep Haryana Saputra
b6987ff329
test: add ONNX parity validation script
2026-05-23 10:32:32 +00:00
Asep Haryana Saputra
6c5a56ade3
fix: capture ONNX conversion errors
2026-05-23 10:28:34 +00:00
Asep Haryana Saputra
abba07b969
fix: improve ONNX conversion logging
2026-05-23 10:26:21 +00:00
Asep Haryana Saputra
4d82bbae34
feat: add ONNX conversion script
2026-05-23 09:57:19 +00:00
Asep Haryana Saputra
3d3f1d14fa
refactor: replace Python ML service runtime with Rust
2026-05-23 09:50:39 +00:00
Asep Haryana Saputra
b4975819eb
feat: serve ML inference endpoints with Axum
2026-05-23 09:48:54 +00:00
Asep Haryana Saputra and Claude Opus 4.7
36e4a49ca7
fix: harden ONNX model wrapper
...
- Store ONNX Session in Option<Mutex<Session>> for thread-safe concurrent access
- Lock session before run() in predict(), map lock poisoning to PredictionFailed
- Preserve ModelUnavailable when session is None
- Reject non-finite values (NaN, +inf, -inf) in prediction_from_probabilities
- Add unit tests for NaN, positive infinity, and negative infinity rejection
- Keep all existing tests passing
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-05-23 09:44:25 +00:00
Asep Haryana Saputra
fc34e52911
feat: add ONNX model inference wrapper
2026-05-23 09:41:30 +00:00
Asep Haryana Saputra
ad4c897c41
feat: preprocess uploaded images in Rust
2026-05-23 09:38:10 +00:00
Asep Haryana Saputra
ee872c644f
fix: align ML service response schemas
2026-05-23 09:36:20 +00:00
Asep Haryana Saputra
dce4d4f21c
feat: define ML service API responses
2026-05-23 09:33:15 +00:00
Asep Haryana Saputra
96c38df124
feat: load ML service config from environment
2026-05-23 09:30:51 +00:00
Asep Haryana Saputra and Claude Opus 4.7
10e890cc42
feat: scaffold Rust ML service crate
...
Create Rust crate skeleton with Cargo.toml, main.rs, and config.rs.
Includes package metadata, dependencies (anyhow, axum, image, ndarray,
ort, serde, tokio, tower, tracing), and config module with LABELS
constants, SERVICE_NAME, SERVICE_VERSION, DEFAULT_INPUT_SIZE, and
resolve_model_path function. Config tests verify label order, relative
path resolution, and absolute path preservation.
Also includes approved spec and implementation plan documents.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-05-23 09:23:38 +00:00
Asep Haryana Saputra
b735897dc2
fix: add LFS support in checkout step of deployment workflow
2026-05-22 22:22:07 +00:00
Asep Haryana Saputra
8cd128a438
fix: update ML_SERVICE_URL to use internal service endpoint in deployment configuration
2026-05-22 22:10:00 +00:00
Asep Haryana Saputra
4453758180
fix: update API proxy configuration to use internal service endpoint
2026-05-22 22:06:21 +00:00
Asep Haryana Saputra
193f83d9c5
fix: update VITE_API_BASE_URL fallback to an empty string in deployment workflow
2026-05-22 22:01:23 +00:00
Asep Haryana Saputra
2a12c998a8
fix: remove outdated comment regarding dynamic IMAGE_PREFIX in deployment workflow
2026-05-22 21:58:57 +00:00
Asep Haryana Saputra
83993febc7
fix: update comment to clarify dynamic IMAGE_PREFIX setting in deployment workflow
2026-05-22 21:58:00 +00:00
Asep Haryana Saputra
1d421ee948
feat: update deployment configuration and enhance VITE_API_BASE_URL handling
2026-05-22 21:53:01 +00:00
Asep Haryana Saputra
39039b4d27
fix: update environment variable setup in deployment script
2026-05-22 21:42:58 +00:00
Asep Haryana Saputra
fbd85c7e3a
fix: update image prefix setting and normalize repository name in deployment script
2026-05-22 21:41:21 +00:00
Asep Haryana Saputra
a94fb50225
fix: normalize repository name to lowercase in deployment workflow
2026-05-22 21:40:42 +00:00
Asep Haryana Saputra
a0f9d307fd
feat: enhance deployment script to clone repository if not present
2026-05-22 21:38:52 +00:00
Asep Haryana Saputra
80df164a2b
fix: improve validation of deployment secrets in workflow
2026-05-22 21:35:48 +00:00
Asep Haryana Saputra
64d63587c7
feat: validate deployment secrets and update SSH action version
2026-05-22 21:33:32 +00:00
Asep Haryana Saputra and Claude Opus 4.7
1978597bcf
feat: add Docker deployment workflow
...
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-05-22 21:20:56 +00:00
Asep Haryana Saputra
5ca95907a0
feat: implement Docker deployment plan with web, API, and ML services
2026-05-22 20:11:37 +00:00
Asep Haryana Saputra and Claude Opus 4.7
1d4355e9f0
docs: add Docker deployment design
...
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-05-22 20:08:13 +00:00
Asep Haryana Saputra and Claude Opus 4.7
e84be0d42f
fix: handle malformed ML service responses
...
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-05-22 20:00:01 +00:00
Asep Haryana Saputra and Claude Opus 4.7
b81fecaa3f
chore: remove API local model dependencies
...
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-05-22 19:54:31 +00:00
Asep Haryana Saputra and Claude Opus 4.7
1689f3f44e
feat: call ML service for image classification
...
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-05-22 19:53:10 +00:00
Asep Haryana Saputra and Claude Opus 4.7
9a642a8581
feat: add ML service URL config
...
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-05-22 19:50:25 +00:00
Asep Haryana Saputra and Claude Opus 4.7
b177662241
docs: add API ML service migration plan
...
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-05-22 19:49:04 +00:00
Asep Haryana Saputra and Claude Opus 4.7
b69b32f5b3
docs: add API ML service migration spec
...
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-05-22 19:46:48 +00:00
Asep Haryana Saputra and Claude Opus 4.7
c3e7453390
chore: remove local Claude artifact from tracking
...
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-05-22 19:41:00 +00:00
Asep Haryana Saputra and Claude Opus 4.7
ed8cecc3f5
fix: align ML service labels with training order
...
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-05-22 19:40:41 +00:00
Asep Haryana Saputra
59877bc17f
chore: add __pycache__ to .gitignore
2026-05-22 19:35:44 +00:00
Asep Haryana Saputra and Claude Opus 4.7
47d9a53a44
docs: add ML service implementation plan
...
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-05-22 19:34:11 +00:00
Asep Haryana Saputra and Claude Opus 4.7
f08ba6753d
chore: ignore ML service virtualenv
...
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-05-22 19:34:03 +00:00
Asep Haryana Saputra and Claude Opus 4.7
3b0416b946
docs: add ML service usage guide
...
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-05-22 19:30:05 +00:00
Asep Haryana Saputra and Claude Opus 4.7
a30071d8e8
feat: add ML service API routes
...
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-05-22 19:29:44 +00:00
Asep Haryana Saputra and Claude Opus 4.7
f3d2b8d72e
feat: add ML model prediction service
...
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-05-22 19:29:13 +00:00
Asep Haryana Saputra and Claude Opus 4.7
ca9cbb12bf
feat: add ML service response schemas
...
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-05-22 19:28:43 +00:00
Asep Haryana Saputra and Claude Opus 4.7
37831ba717
feat: add ML service Moon tasks
...
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-05-22 19:23:43 +00:00
Asep Haryana Saputra and Claude Opus 4.7
d21bd2e683
feat: scaffold ML service configuration
...
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-05-22 19:21:15 +00:00
Asep Haryana Saputra and Claude Opus 4.7
5b441282fc
docs: add ML service design spec
...
Document the agreed FastAPI inference service boundary before implementation planning.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-05-22 19:14:56 +00:00