-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
AVLN:0004 Data at the root level is invalid - due to adding a gguf file as asset #16223
Comments
We probably should add a max size limit for avalonia resources and output a better error instead.
Are you sure you want to embed 4 GB file into an executable? That's what avalonia resources are. |
Hello @maxkatz6 - thank you so much for your fast reply! Hmm as long as I can read the file via FileIO, then that's the way to go. But should I copy gguf into bin/debug and bin/release via csproj? where should I put gguf? use API ? I could add gguf-file to a API, but then I have to figure out wether it's possible to integerate API as part of avalonia UI? I know it's not optimal to integrate API with the application, but what else can I make it easy to publish application without the complications of setting up ekstern server? |
What is that even this gguf-file and why is it as big as an entire DVD film? |
It's LLM inference file - this is actually small believe it or not ;) |
Ah okay, so I'd rather provide such a file independent from the exenin order to allow an easier update of it if needed. Anyways, don't ship as an asset due to file size and startup performance. Use disc IO for fhe acccess to it. |
thank you for your reply @timunie okay, so I should copy gguf-file directly over to bin/debug and bin/Release ? |
You can ask dotnet to copy a file to output dir, see: https://learn.microsoft.com/en-us/visualstudio/msbuild/common-msbuild-project-items?view=vs-2022#compile |
Describe the bug
I'm getting a AVLN:0004 Data at the root level is invalid , when I tried adding a gguf to the csproj
Here's the Asset folder:
here's the complete error:
Severity Code Description Project File Line
Severity Code Description Project File Line Suppression State Error (active) AVLN:0004at the root level is invalid. Line 1, position 1. AvalTest.AvaloniaProject C:\Users\test\source\repos\AvalTest.AvaloniaProject\AvalTest.AvaloniaProject\App.axaml 1
To Reproduce
or just leave standard setup like this and run a build.
Expected behavior
Expected behaivor is that it can run the application without creating any errors like AVLN:0004
Avalonia version
11.0.11
OS
Windows 11
Additional context
Avolonia desktop application
The text was updated successfully, but these errors were encountered: