Open elsaco opened 11 months ago
What do you mjean with WSL instance?
Looking everywhere, there is nothing of open remote connection to default WSL instance.
I mean, I appreciate the help. But more I try, more everything changes, weird bugs, not very transparent explanations.
Something it looks pretty straight forward it just gets strangely over complicated.
Windows AI Studio – following walkthrough… (which shows this #28 amd #18) Windows has latest Nvidia Graphics driver installed.
wsl -l -v NAME STATE VERSION
- Ubuntu-22.04 Running 2 docker-desktop-data Stopped 2 docker-desktop Stopped 2
Setup Completes. (Conda and CUDA libraries are added to the Ubuntu instance.)
Selected “Model Fine-tuning”… NOTE: Because VSCode is currently configured for WSL and appears to be in the Ubuntu context – you cannot specify an Windows directory pathway. If you specify a directory by navigating to the WSL mnt correspondingly… it seems to use the Windows file-system delimiter instead of the Linux system delimter for the Project folder pathway. (Note: This could potentially cause issues if the details are saved in configuration files.)
A) Set a Project folder name (SamplePHI2), and navigated to a shared directory (/mnt/c/Users/{ user }/source/repos/AI) and Selected Model (Microsoft/phi-2)
B) Step 2 Configure the model
Leave defaults…
NOTE: The Conda environment does not get created. I needed to manually (a) Open a terminal, and (b) Execute the first_time_setup.sh bash script in the setup. Select “Generate Project”
Some files should correspond with the hugging face model as published. https://huggingface.co/microsoft/phi-2/tree/main THIS CAN TAKE SOME TIME AS DOWNLOADING OF MODEL FILES CAN BE LARGE…
C) Once download occurs, there should be a new button, “Relaunch Windows in Workspace”. Click the button
D) Once it relaunches, Trust the Project.
GET Error Open Workspace.
I changed to point to the correct folder path: /mnt/c/mnt/c/Users/{ user }/source/repos/AI/SamplePHI2 -Get the Trust dialog…
Follow the README
Noting this notification:
Please make sure to disconnect from WSL while you create the workspace/project. Once the project is created then you can open the workspace in WSL. While creating the project make sure that the bottom left of the VS Code window shows that it is disconnected from WSL. e.g.
Project Location
to be WSL folderThe project is saved in
C:\home\<username>\<project_name>
instead.Step 3 fails to generate project:
VSCode complains that
This workspace is on the Windows file system (/mnt/). For best performance, we recommend moving the workspace to the Linux file system (~/home)
Quick workaround: before finalizing step 3 manually move the project folder from
C:\home
to~home
in WSL instance.