Repository navigation
Conversation
AI_WARMUP이 없으면 개발은 가중치를 기동 때 올리지 않고, 운영(NODE_ENV=production)은 예전처럼 예열한다. 개발에서만 torch 스레드를 1로 제한한다. Co-authored-by: park gun hyung <qkrrjsgud49@gmail.com>
cursor
Bot
force-pushed
the
cursor/ai-warmup-opt-in-77ad
branch
from
October 22, 2026 01:02
67ad4ac to
494eace
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
왜
로컬
npm run ai가 기동하자마자 YOLO/PyTorch 가중치를 올려, Docker Desktop·WSL2·Cursor가 같이 떠 있는 8~16GB Windows PC가 멈췄습니다./health도 클래스 수를 세려고 모델을 읽었습니다.무엇을 바꿨나
AI_WARMUP이 없으면 개발은 예열하지 않고, 첫 추론 요청에서 가중치를 읽습니다.NODE_ENV/ENV/ENVIRONMENT가production이거나AI_WARMUP=true이면 예전처럼 기동 시 예열합니다. 운영 env 예시는fishing/ai/production.env.example입니다.torch.set_num_threads를 기본 1로 제한합니다.TORCH_NUM_THREADS로 바꿀 수 있고, 운영은 값을 지정하지 않으면 PyTorch 기본값을 유지합니다./health는 가중치를 로드하지 않습니다. 예열 전에는yoloClassCount가 비어 있을 수 있습니다.검증
npm test --prefix apps/api— 이 PR은 API를 바꾸지 않음npm run build --prefix apps/api— 이 PR은 API를 바꾸지 않음npm run build --prefix apps/webpython3 -m unittest discover -s ai/tests -t ai(15 tests OK)화면
해당 없음