Skip to content

Commit 969089c

Browse files
authored
feat: update list models (#55)
* docs: update supported model at begining * update supported model cli
1 parent ada1e58 commit 969089c

File tree

2 files changed

+14
-13
lines changed

2 files changed

+14
-13
lines changed

README.md

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,19 @@ emd deploy
7979
> When you see the message "Waiting for model: ...", it means the deployment task has started and you can stop the terminal output by pressing `Ctrl+C`.
8080
> For more information on deployment parameters, please refer to the [Deployment parameters](docs/en/deployment.md).
8181
82+
#### List Supported Models
83+
84+
Quickly see what models are supported, this command will output all information related to deployment. (Plese browse [Supported Models](docs/en/supported_models.md) for more information.)
85+
86+
```bash
87+
emd list-supported-models
88+
```
89+
90+
The following command is recommended to just list the model types.
91+
92+
```bash
93+
emd list-supported-models | jq -r '.[] | "\(.model_id)\t\(.model_type)"' | column -t -s $'\t' | sort
94+
8295

8396
#### Deployment Status
8497

@@ -121,18 +134,6 @@ emd destroy DeepSeek-R1-Distill-Qwen-1.5B
121134

122135
> **Note:** You can find the *ModelId* in the output by `emd status`.
123136

124-
#### List Supported Models
125-
126-
Quickly see what models are supported, this command will output all information related to deployment. (Plese browse [Supported Models](docs/en/supported_models.md) for more information.)
127-
128-
```bash
129-
emd list-supported-models
130-
```
131-
132-
The following command is recommended to just list the model types.
133-
134-
```bash
135-
emd list-supported-models | jq -r '.[] | "\(.model_id)\t\(.model_type)"' | column -t -s $'\t' | sort
136137
```
137138

138139
## Documentation

src/emd/models/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ def get_model(cls ,model_id:str,update:dict = None) -> T:
206206

207207
@classmethod
208208
def get_supported_models(cls) -> dict:
209-
return {model_id: model.model_dump() for model_id,model in cls.model_map.items()}
209+
return {model_id: model.model_type for model_id,model in cls.model_map.items()}
210210

211211
def find_current_engine(self,engine_type:str) -> dict:
212212
supported_engines:List[Engine] = self.supported_engines

0 commit comments

Comments
 (0)