Skip to content

Commit

Permalink
add: draft Phi-4 SLM from Microsoft with thumbnail and tryout inside …
Browse files Browse the repository at this point in the history
…model-card
  • Loading branch information
lizable authored and agatha197 committed Jan 9, 2025
1 parent 51446a0 commit 6191df7
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
14 changes: 9 additions & 5 deletions react/src/components/ModelTryContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ const ModelTryContent: React.FC<ModelTryContentProps> = ({
image: {
registry: 'cr.backend.ai',
name: (() => {
if (modelName?.includes('stable-diffusion')) {
if (['stable-diffusion', 'phi-4'].includes(modelName as string)) {
return 'testing/ngc-pytorch';
}
switch (runtimeVariant) {
Expand All @@ -233,7 +233,7 @@ const ModelTryContent: React.FC<ModelTryContentProps> = ({
}
})(),
tag: (() => {
if (modelName?.includes('stable-diffusion')) {
if (['stable-diffusion', 'phi-4'].includes(modelName as string)) {
return '24.07-pytorch2.4-py310-cuda12.5';
}
switch (runtimeVariant) {
Expand Down Expand Up @@ -264,7 +264,9 @@ const ModelTryContent: React.FC<ModelTryContentProps> = ({
version: '',
},
// FIXME: temporally hard-coded runtime variant
runtimeVariant: modelName?.includes('stable-diffusion')
runtimeVariant: ['stable-diffusion', 'phi-4'].includes(
modelName as string,
)
? 'custom'
: runtimeVariant,
cluster_size: 1,
Expand Down Expand Up @@ -536,7 +538,8 @@ const ModelTryContent: React.FC<ModelTryContentProps> = ({
type="primary"
disabled={
modelName?.includes('stable-diffusion') ||
modelName?.includes('Talkativot UI')
modelName?.includes('Talkativot UI') ||
modelName?.includes('phi-4')
}
onClick={() => {
cloneOrCreateModelService('vllm');
Expand All @@ -553,7 +556,8 @@ const ModelTryContent: React.FC<ModelTryContentProps> = ({
modelName?.includes('stable-diffusion') ||
modelName?.includes('gemma-2-27b-it') ||
modelName?.includes('Llama-3.2-11B-Vision-Instruct') ||
modelName?.includes('Talkativot UI')
modelName?.includes('Talkativot UI') ||
modelName?.includes('phi-4')
}
type="primary"
onClick={() => {
Expand Down
1 change: 1 addition & 0 deletions react/src/pages/ModelStoreListPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ const ModelStoreListPage: React.FC = () => {
})
.sort((a, b) => {
const specialNames = [
'phi-4',
'gemma-2-27b-it',
'Llama-3.2-11B-Vision-Instruct',
'stable-diffusion-3-medium',
Expand Down
Binary file added resources/images/model-player/phi-41.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 6191df7

Please sign in to comment.