Skip to content

Commit

Permalink
fix: Add DeepSeek Qwen E2E (#852)
Browse files Browse the repository at this point in the history
**Reason for Change**:
E2E Test for Qwen

---------

Signed-off-by: jerryzhuang <zhuangqhc@gmail.com>
Co-authored-by: jerryzhuang <zhuangqhc@gmail.com>
  • Loading branch information
ishaansehgal99 and zhuangqh authored Jan 30, 2025
1 parent e333f2a commit 8d3a1e1
Showing 1 changed file with 38 additions and 1 deletion.
39 changes: 38 additions & 1 deletion test/e2e/preset_vllm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,29 @@ var _ = Describe("Workspace Preset on vllm runtime", func() {
validateWorkspaceReadiness(workspaceObj)
})

It("should create a deepseek-distilled-qwen-14b workspace with preset public mode successfully", func() {
if !runLlama13B {
Skip("Skipping deepseek-distilled-qwen-14b workspace test")
}
numOfNode := 1
workspaceObj := createDeepSeekQwen14BWorkspaceWithPresetPublicModeAndVLLM(numOfNode)

defer cleanupResources(workspaceObj)
time.Sleep(30 * time.Second)

validateCreateNode(workspaceObj, numOfNode)
validateResourceStatus(workspaceObj)

time.Sleep(30 * time.Second)

validateAssociatedService(workspaceObj)
validateInferenceConfig(workspaceObj)

validateInferenceResource(workspaceObj, int32(numOfNode), false)

validateWorkspaceReadiness(workspaceObj)
})

It("should create a falcon workspace with preset public mode successfully", func() {
numOfNode := 1
workspaceObj := createFalconWorkspaceWithPresetPublicModeAndVLLM(numOfNode)
Expand Down Expand Up @@ -179,14 +202,28 @@ func createDeepSeekLlama8BWorkspaceWithPresetPublicModeAndVLLM(numOfNode int) *k
uniqueID := fmt.Sprint("preset-deepseek-", rand.Intn(1000))
workspaceObj = utils.GenerateInferenceWorkspaceManifestWithVLLM(uniqueID, namespaceName, "", numOfNode, "Standard_NC24ads_A100_v4",
&metav1.LabelSelector{
MatchLabels: map[string]string{"kaito-workspace": "public-preset-e2e-test-deepseek-vllm"},
MatchLabels: map[string]string{"kaito-workspace": "public-preset-e2e-test-deepseek-llama-vllm"},
}, nil, PresetDeepSeekR1DistillLlama8BModel, kaitov1alpha1.ModelImageAccessModePublic, nil, nil, nil)

createAndValidateWorkspace(workspaceObj)
})
return workspaceObj
}

func createDeepSeekQwen14BWorkspaceWithPresetPublicModeAndVLLM(numOfNode int) *kaitov1alpha1.Workspace {
workspaceObj := &kaitov1alpha1.Workspace{}
By("Creating a workspace CR with DeepSeek Distilled Qwen 14B preset public mode and vLLM", func() {
uniqueID := fmt.Sprint("preset-deepseek-", rand.Intn(1000))
workspaceObj = utils.GenerateInferenceWorkspaceManifestWithVLLM(uniqueID, namespaceName, "", numOfNode, "Standard_NC24ads_A100_v4",
&metav1.LabelSelector{
MatchLabels: map[string]string{"kaito-workspace": "public-preset-e2e-test-deepseek-qwen-vllm"},
}, nil, PresetDeepSeekR1DistillQwen14BModel, kaitov1alpha1.ModelImageAccessModePublic, nil, nil, nil)

createAndValidateWorkspace(workspaceObj)
})
return workspaceObj
}

func createFalconWorkspaceWithPresetPublicModeAndVLLM(numOfNode int) *kaitov1alpha1.Workspace {
workspaceObj := &kaitov1alpha1.Workspace{}
By("Creating a workspace CR with Falcon 7B preset public mode and vLLM", func() {
Expand Down

0 comments on commit 8d3a1e1

Please sign in to comment.