finetune

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 8, 2024 License: Apache-2.0 Imports: 41 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RayVersion             = "v2.7.1"
	DefaultRequeueDuration = 3 * time.Second
	CheckpointPath         = "/home/ray/checkpoint_path"
)

Variables

This section is empty.

Functions

func GenerateLLMCheckpointName

func GenerateLLMCheckpointName(finetuneName string) string

GenerateLLMCheckpointName generates a LLMCheckpoint name from Finetune name

Types

type FinetuneExperimentReconciler

type FinetuneExperimentReconciler struct {
	client.Client
	Scheme *runtime.Scheme
	Log    logging.Logger
}

FinetuneExperimentReconciler reconciles a FinetuneExperiment object

func (*FinetuneExperimentReconciler) Reconcile

func (*FinetuneExperimentReconciler) SetupWithManager

func (r *FinetuneExperimentReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type FinetuneJobReconciler

type FinetuneJobReconciler struct {
	client.Client
	Scheme *runtime.Scheme
	Log    logging.Logger
}

FinetuneJobReconciler reconciles a FinetuneJob object

func (*FinetuneJobReconciler) Reconcile

func (r *FinetuneJobReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the FinetuneJob object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.14.1/pkg/reconcile

func (*FinetuneJobReconciler) SetupWithManager

func (r *FinetuneJobReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type FinetuneReconciler

type FinetuneReconciler struct {
	client.Client
	Scheme    *runtime.Scheme
	Log       logging.Logger
	Clientset *kubernetes.Clientset
	Config    *rest.Config
}

FinetuneReconciler reconciles a Finetune object

func (*FinetuneReconciler) Reconcile

func (r *FinetuneReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the Finetune object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.14.1/pkg/reconcile

func (*FinetuneReconciler) SetupWithManager

func (r *FinetuneReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL