Skip to content

Commit b8108cd

Browse files
committed
Merge remote-tracking branch 'upstream/main'
2 parents ea8bdf9 + dcb90ac commit b8108cd

File tree

3 files changed

+36
-2
lines changed

3 files changed

+36
-2
lines changed

.pre-commit-config.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v2.3.0
4+
hooks:
5+
- id: check-yaml
6+
args: [--allow-multiple-documents]
7+
- id: check-json
8+
- id: end-of-file-fixer
9+
- id: trailing-whitespace
10+
- id: pretty-format-json
11+
12+
- repo: https://github.com/pycqa/isort
13+
rev: 5.11.5
14+
hooks:
15+
- id: isort
16+
name: isort
17+
entry: isort --profile black
18+
19+
- repo: https://github.com/psf/black
20+
rev: 24.2.0
21+
hooks:
22+
- id: black
23+
24+
- repo: https://github.com/pycqa/flake8
25+
rev: 7.1.1
26+
hooks:
27+
- id: flake8
28+
args:
29+
- --ignore=E203,W503
30+
- --max-line-length=88

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,7 @@ build-test-image:
4545
.PHONY: push-test-image
4646
push-test-image:
4747
podman push ${E2E_TEST_IMAGE}
48+
49+
.PHONY: precommit
50+
precommit:
51+
pre-commit run --all-files

tests/kfto/kfto_training_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ func createKFTOPyTorchJob(test Test, namespace string, config corev1.ConfigMap,
341341
},
342342
Limits: corev1.ResourceList{
343343
corev1.ResourceCPU: resource.MustParse("2"),
344-
corev1.ResourceMemory: resource.MustParse("8Gi"),
344+
corev1.ResourceMemory: resource.MustParse("12Gi"),
345345
corev1.ResourceName(gpu.ResourceLabel): resource.MustParse(fmt.Sprint(numGpus)),
346346
},
347347
},
@@ -506,7 +506,7 @@ func createKFTOPyTorchJob(test Test, namespace string, config corev1.ConfigMap,
506506
},
507507
Limits: corev1.ResourceList{
508508
corev1.ResourceCPU: resource.MustParse("2"),
509-
corev1.ResourceMemory: resource.MustParse("8Gi"),
509+
corev1.ResourceMemory: resource.MustParse("12Gi"),
510510
corev1.ResourceName(gpu.ResourceLabel): resource.MustParse(fmt.Sprint(numGpus)),
511511
},
512512
},

0 commit comments

Comments
 (0)