Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Native Windows #1

Open
bunnywaffle opened this issue Aug 7, 2023 · 5 comments
Open

[BUG] Native Windows #1

bunnywaffle opened this issue Aug 7, 2023 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@bunnywaffle
Copy link

Describe the bug
When installing it, when I try to run this command: ./run.ps1 , PowerShell shows me this error.

To Reproduce
Steps to reproduce the behavior:

  1. run this ./run.ps1
  2. See error

Expected behavior
A clear and concise description of what you expected to happen.

alpaca-electron should have run after running that command.

Screenshots
If applicable, add screenshots to help explain your problem.
image

Desktop (please complete the following information):

  • OS: Windows 11
  • Version [e.g. 1.0.5]

Additional context
Add any other context about the problem here.

@bunnywaffle bunnywaffle added the bug Something isn't working label Aug 7, 2023
@ReconIII
Copy link

ReconIII commented Aug 7, 2023

The error message you're receiving is indicating that the execution policy on your system is preventing you from running unsigned scripts.

You can change the execution policy to allow running unsigned scripts, but please be aware that this can have security implications, especially if you run scripts from untrusted sources.

To change the execution policy for the current session only, you can run: Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope Process

But even when I do that it says "Unsupported platform: Windows_NT"...

@bunnywaffle
Copy link
Author

Still giving me the same error.

image

@ReconIII
Copy link

ReconIII commented Aug 7, 2023

Still giving me the same error.

image

This might be a case where it just can't find the ./run.ps1 file? :/ idk I am not involved. I can't get it to run either.
I reached out to Albert for more clarity on where these files are supposed to be placed? Are they to be placed in the root of the alapaca-electron folder? Hopefully he will reply here, otherwise I will let you know if he gets back to me.

@albertstarfield
Copy link
Owner

Hello! Firstly, thank you for giving the .ps1 script or program a try on Windows. Unfortunately, it appears that the conversion from the shell script to PowerShell script using AI didn't go smoothly. As a result, I've made the decision to rework the script from scratch. This might take some time, but I want to ensure its functionality. While waiting, you might want to explore using WSL2 with the GUI feature, WSLg. I appreciate your patience, and I'll keep this issue open until the script can run seamlessly on both native Windows 10 and 11. Thank you!

@albertstarfield albertstarfield changed the title [BUG] [BUG] Native Windows Aug 8, 2023
@albertstarfield
Copy link
Owner

Hi there,
I am delighted to share with you the current strides made towards resolving this issue. The advancements are delineated as follows:

  1. Our endeavors extend to bolster Windows support, albeit excluding arm64 Windows due to resource constraints for development.
  2. Subtle refinements have been woven into the central codebase (index.js) to foster greater compatibility with Windows NT, particularly pertaining to directory path resolution.
  3. The script responsible for initiating Windows execution has been reset, primed for tailored rewriting to align with Windows specifics.
  4. Streamlining the launch procedure has been a priority, ensuring that valuable time is not squandered on processes like excessive repackaging.
  5. Advancements have been made in procuring acceleration resources such as CUDA, OpenCL, OpenBLAS, and Windows-specific binaries. These resources are curated from the official Falcon (ggllm.cpp) and LLaMa GitHub Release pages. It is pertinent to note that Windows compatibility is currently confined to the Falcon and LLaMa ggml models exclusively.

While I extend an invitation for you to explore the repository, navigate to the 'usr' directory, and initiate 'npm start,' I must underscore that, owing to ongoing development, the functionality might not be assured at this juncture. Your patience and understanding are deeply appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

4 participants