vscode-ai-toolkit icon indicating copy to clipboard operation
vscode-ai-toolkit copied to clipboard

Can't find 'adapter_config.json' for console_chat.py

Open williamj77 opened this issue 8 months ago • 7 comments

Hello,

I cannot run console_chat.py.

Here is the error:

"An error occurred: Can't find 'adapter_config.json' at ..."

Is there updated code for the microsoft/Phi-3-mini-4k-instruct project?

williamj

williamj77 avatar Apr 07 '25 15:04 williamj77

Hi @williamj77, could you show more details about how you ran console_chat.py? For example, run it locally or in ACA? Have you finished finetune?

a1exwang avatar Apr 08 '25 06:04 a1exwang

Hello,

It is run locally.

Again, where is the adapters_name file?

adapters_name = "?" # Ensure this path is correctly set before running

williamj

williamj77 avatar Apr 09 '25 14:04 williamj77

The project is for finetuning. The missing file might be caused by not finishing finetuning. Is finetuning what you want to achieve? If so, you may refer to this document https://github.com/microsoft/vscode-ai-toolkit/blob/main/doc/finetune.md

a1exwang avatar Apr 10 '25 06:04 a1exwang

Hello,

Yes, I am finetuning.

I believe the job finished.

I wish to run everything locally.

williamj

From: Alex Wang Sent: Thursday, April 10, 2025 2:32 AM To: microsoft/vscode-ai-toolkit Cc: William Johnston ; Mention Subject: Re: [microsoft/vscode-ai-toolkit] Can't find 'adapter_config.json' for console_chat.py (Issue #190)

The project is for finetuning. The missing file might be caused by not finishing finetuning. Is finetuning what you want to achieve? If so, you may refer to this document https://github.com/microsoft/vscode-ai-toolkit/blob/main/doc/finetune.md

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***> a1exwang left a comment (microsoft/vscode-ai-toolkit#190) The project is for finetuning. The missing file might be caused by not finishing finetuning. Is finetuning what you want to achieve? If so, you may refer to this document https://github.com/microsoft/vscode-ai-toolkit/blob/main/doc/finetune.md

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

williamj77 avatar Apr 10 '25 14:04 williamj77

Hello,

Here are screenshots of the output directories.

Did the finetune job finish?

https://www.dropbox.com/scl/fi/cz3t8vgg8vcmr3fu0ifjb/finetune-checkpoint-output.png?rlkey=y7p1slwnfqacc2t7pb1yoq60x&st=7evsf364&dl=0

https://www.dropbox.com/scl/fi/fkh8h95ecje2rwes9q9ez/finetune-output.png?rlkey=pt4v3y58k56kw53b6j0glgscz&st=fj253gnm&dl=0

williamj

williamj77 avatar Apr 11 '25 20:04 williamj77

It seems the finetuning result exists. Could you try running python gradio-chat.py --baseonly and see if you can successfully run the base model without adapters?

a1exwang avatar May 28 '25 04:05 a1exwang

I needed to add this folder directory:

adapters_name = "../models/checkpoints/checkpoint-1875"

Thank you.

williamj

williamj77 avatar Jun 23 '25 11:06 williamj77