-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Initialize Fine-Tuning Interface and Core Methods - Part 3 (#308)
Setup
- Loading branch information
1 parent
ee9101a
commit 08dd1f4
Showing
32 changed files
with
357 additions
and
94 deletions.
There are no files selected for viewing
This file contains 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
20 changes: 20 additions & 0 deletions
20
examples/fine-tuning/kaito_workspace_tuning_falcon_7b.yaml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
apiVersion: kaito.sh/v1alpha1 | ||
kind: Workspace | ||
metadata: | ||
name: workspace-tuning-falcon-7b | ||
spec: | ||
resource: | ||
instanceType: "Standard_NC12s_v3" | ||
labelSelector: | ||
matchLabels: | ||
app: tuning-falcon-7b | ||
tuning: | ||
preset: | ||
name: falcon-7b | ||
method: lora | ||
config: tuning-config-map # ConfigMap containing tuning arguments | ||
input: | ||
name: tuning-data | ||
hostPath: /path/to/your/input/data # dataset on node | ||
output: | ||
hostPath: /path/to/store/output # Tuning Output |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package tuning | ||
|
||
import corev1 "k8s.io/api/core/v1" | ||
|
||
const ( | ||
DefaultNumProcesses = "1" | ||
DefaultNumMachines = "1" | ||
DefaultMachineRank = "0" | ||
DefaultGPUIds = "all" | ||
) | ||
|
||
var ( | ||
DefaultAccelerateParams = map[string]string{ | ||
"num_processes": DefaultNumProcesses, | ||
"num_machines": DefaultNumMachines, | ||
"machine_rank": DefaultMachineRank, | ||
"gpu_ids": DefaultGPUIds, | ||
} | ||
|
||
DefaultImagePullSecrets = []corev1.LocalObjectReference{} | ||
) |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package tuning | ||
|
||
import ( | ||
"context" | ||
kaitov1alpha1 "github.com/azure/kaito/api/v1alpha1" | ||
"github.com/azure/kaito/pkg/model" | ||
"sigs.k8s.io/controller-runtime/pkg/client" | ||
) | ||
|
||
func CreatePresetTuning(ctx context.Context, workspaceObj *kaitov1alpha1.Workspace, | ||
tuningObj *model.PresetParam, kubeClient client.Client) (client.Object, error) { | ||
// TODO | ||
return nil, nil | ||
} |
This file contains 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
This file contains 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
Oops, something went wrong.