From ecc599e43e636ca2993ced9d1f96fa46d819e8a7 Mon Sep 17 00:00:00 2001 From: "che.ender" Date: Wed, 26 Feb 2025 14:50:48 +0800 Subject: [PATCH] Update README.md add swift export --- demo/README.md | 27 +++++++++++++++++++-------- 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/demo/README.md b/demo/README.md index aabd635..248f3b7 100644 --- a/demo/README.md +++ b/demo/README.md @@ -21,21 +21,32 @@ swift sft --model_type deepseek_janus_pro --model --d full Fine tuning swift sft --model_type deepseek_janus_pro --model --dataset --train_type full -## 4. swift model Service -swift deploy --ckpt_dir -## 5. swift model Proxy Service +## 4. swift model export +Export can merge two previously dispersed models into one model system +swift export --ckpt_dir + +## 5. swift model Service +swift deploy --ckpt_dir + + +## 6. swift model Proxy Service +Create an empty uploads directory fastapi_swift.py -## 6. Client API fastapi_client. py -Submit questions and receive responses to the swift model Proxy Service using fastapi_client. py +## 7. Client API fastapi_client. py +Submit questions and receive responses to the swift model Proxy Service +using fastapi_client. py -## Other1. -The parameters(seed、top_p、temperature ) are no longer useful, but in order to maintain interface reuse, they are retained +## Other1. +fastap_client.py parameters(seed、top_p、temperature ) are no longer useful, +but in order to maintain interface reuse, +they are retained -## Other2. +## Other2. +If no export is performed, then: If the Swift model needs to change the directory, the configuration file needs to be changed Adapterconfig.json Modify 'base_madel_name_or_path' Args.json modifies 'model'