SDK 색인
import qgon 으로 쓰는 함수와 qgon 명령을 한 표에 모았습니다. 이름을 누르면 시그니처·설명·화면 위치가 나옵니다.
이름종류하는 일화면 위치바뀐 판
qgon.pipeline.kwargs_from_spec 함수명세 → 실행 인자 {name, project, default_queue, steps:[…위상 순서…]}.Build › 파이프라인-
qgon.queue.order 함수대기열 순서: {queue, admin, entries:[{task_id, position(1부터), owner, mine, urgent, added, name?, owner_id?, urgent_request?}]}.Build › 스케줄링-
qgon.queue.status 함수배차 상태: {enabled, state, intake, available_gb, threshold_gb, waiting:[{position, reason, task_id?, need_gb?, mine}], reason_labels, running:[{task_id, yield_capable, yield, mine}], yields:[…], yield_wait_s, …}.Build › 스케줄링-
qgon.queue.yield_task 함수실행 중 GPU 작업에 양보 요청(체크포인트 뒤 종료 75 → 이어서 학습으로 다시 줄 섬): 관리자, 또는 주인이 자기 작업(맨 뒤에 다시 줄 섬).Build › 스케줄링-
qgon.serve.labels 함수분류: labels(["cat","dog"], [0.9, 0.1]) 또는 labels([("cat", 0.9), ("dog", 0.1)]).Deploy › Playground (모델 시험)-
qgon.serve.boxes 함수검출: boxes([{"bbox": [x, y, w, h], "label": "car", "score": 0.8, "rotation": 0}]).Deploy › Playground (모델 시험)-
qgon.serve.masks 함수분할: masks([{"mask": H×W 참거짓 배열 | "polygon": [[x1,y1,…]] | "rle": {size, counts}, "label", "score"}]).Deploy › Playground (모델 시험)-
qgon.serve.values 함수값(표 회귀 등): values({"quality": 5.62}) 한 행, values({"quality": [5.6, 6.1]}) 여러 행, values([{"quality": 5.6}, …]) 행 목록.Deploy › Playground (모델 시험)-
qgon.serve.keypoints 함수키포인트 (2차): keypoints([{"keypoints": [[x, y, v], …] 또는 [x1, y1, v1, …], "label": "person", "score": 0.9, "bbox"?: [x, y, w, h], "kp_scores"?: [점마다 0~1]}], names="coco17").Deploy › Playground (모델 시험)-
qgon.serve.image 함수결과 이미지 (2차): 사용자 코드가 그린 그림을 돌려준다(화면이 입력 이미지 옆에 보여 준다).Deploy › Playground (모델 시험)-
qgon.serve.combine 함수여러 결과 묶기 (2차): combine(serve.boxes(…), serve.masks(…), serve.image(…)).Deploy › Playground (모델 시험)-
qgon.serve.model_file 함수모델 폴더에서 모델 파일 경로: .qgon-model.json 의 file → 없으면 숨김 아닌 파일이 하나뿐이면 그것 → *.pt 하나.Deploy › Playground (모델 시험)-
qgon.serve.rle_encode 함수H×W 참거짓 배열(numpy·torch·중첩 목록) → {"size": [H, W], "counts": "<COCO 압축 RLE>"} (열 우선).Deploy › Playground (모델 시험)-
qgon.integrations.hf.resume_dir 함수'이어서 학습'으로 시작한 실행이면 HF 체크포인트 폴더 경로(str), 아니면 None: trainer.train(resume_from_checkpoint=…) 에.Build › 스케줄링-
qgon.integrations.hf.QgonProgressCallback 클래스Hugging Face Transformers 연동: Trainer 진행률 → qgon.progress.Build › 스케줄링0.3.31
qgon.integrations.lightning.QgonProgressCallback 클래스PyTorch Lightning 연동: 학습 진행률 → qgon.progress.Build › 스케줄링0.3.31
qgon.finetune.train_here 함수코드로 쓰기(LLM 미세조정 시작 템플릿·'코드로 내보내기'): qgon.init() 한 실행 안이면 그 실행에 기록(체크포인트·전후 샘플·어댑터 출력 모델), 아니면 train_local 과 같다.Build › LLM 미세조정0.3.29