From 6a5c4a884bae8bb4e4587aca8bbe3bdb44d1e2c3 Mon Sep 17 00:00:00 2001 From: Mahfuza Humayra Mohona Date: Thu, 9 Nov 2023 06:03:13 +0600 Subject: [PATCH 01/10] add faq page Signed-off-by: Mahfuza Humayra Mohona --- docs/develop/getting-started/faq.md | 41 +++++++++++++++++++ .../current/develop/getting-started/faq.md | 41 +++++++++++++++++++ 2 files changed, 82 insertions(+) create mode 100644 docs/develop/getting-started/faq.md create mode 100644 i18n/zh/docusaurus-plugin-content-docs/current/develop/getting-started/faq.md diff --git a/docs/develop/getting-started/faq.md b/docs/develop/getting-started/faq.md new file mode 100644 index 000000000..11d03a7ac --- /dev/null +++ b/docs/develop/getting-started/faq.md @@ -0,0 +1,41 @@ +--- +sidebar_position: 4 +--- + +# Frequently Asked Questions + +This FAQ page is designed to address the most common technical inquiries about WasmEdge. If your question is not directly answered here, please refer to the comprehensive WasmEdge documentation or engage with the active WasmEdge community. + +## 1. How does WasmEdge handle memory sharing between modules? + +WasmEdge follows the WebAssembly specification, which currently does not support shared memory between different modules. Each module has its own linear memory space. + +## 2. Can WasmEdge support model training? + +Currently, WasmEdge supports model inference. It uses the WASI-NN API to make predictions using pre-trained models. However, model training is not yet supported. + +## 3. What is the internal flow of WasmEdge? + +The WasmEdge runtime follows a general flow: parsing the Wasm file, validating the parsed Wasm file, compiling the validated Wasm file into native code, and then executing the compiled code. For more detailed information, please refer to the WasmEdge runtime architecture documentation. + +## 4. Why is my plugin crashing? + +If your plugin crashes, it might be due to several reasons. It could be related to incorrect use of the WasmEdge API, or the plugin may be incompatible with the WasmEdge version you're using. It's recommended to debug the plugin using a debugger tool to get more detailed error information. + +## 5. How to create a VM to call `infer()` in a Wasm library? + +You can use the WASI-NN API to call the `infer()` function in a Wasm library. First, you need to prepare the model, inputs, and outputs. Then, you can call the `infer()` function with these parameters. + +## 6. Can WasmEdge support Tensorflow as its inference backend using WASI-NN? + +Yes, WasmEdge can use Tensorflow as its inference backend through the WASI-NN API. + +## 7. How to read a host file in WasmEdge runtime? + +WasmEdge provides the WASI (WebAssembly System Interface) API for interacting with the host system, including file operations. You can use the WASI API to open and read files from the host system. + +## 8. Does WasmEdge only support one backend at the same time? + +WasmEdge can support multiple backends at the same time. For example, it can use both the interpreter and the AOT compiler as backends. However, only one backend can be active for a given Wasm module. + +Remember, this FAQ page is not exhaustive, and the WasmEdge community is always ready to help with any questions or issues you may have. Don't hesitate to reach out if you need assistance in our [Discord server](https://discord.gg/h4KDyB8XTt). diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/develop/getting-started/faq.md b/i18n/zh/docusaurus-plugin-content-docs/current/develop/getting-started/faq.md new file mode 100644 index 000000000..11d03a7ac --- /dev/null +++ b/i18n/zh/docusaurus-plugin-content-docs/current/develop/getting-started/faq.md @@ -0,0 +1,41 @@ +--- +sidebar_position: 4 +--- + +# Frequently Asked Questions + +This FAQ page is designed to address the most common technical inquiries about WasmEdge. If your question is not directly answered here, please refer to the comprehensive WasmEdge documentation or engage with the active WasmEdge community. + +## 1. How does WasmEdge handle memory sharing between modules? + +WasmEdge follows the WebAssembly specification, which currently does not support shared memory between different modules. Each module has its own linear memory space. + +## 2. Can WasmEdge support model training? + +Currently, WasmEdge supports model inference. It uses the WASI-NN API to make predictions using pre-trained models. However, model training is not yet supported. + +## 3. What is the internal flow of WasmEdge? + +The WasmEdge runtime follows a general flow: parsing the Wasm file, validating the parsed Wasm file, compiling the validated Wasm file into native code, and then executing the compiled code. For more detailed information, please refer to the WasmEdge runtime architecture documentation. + +## 4. Why is my plugin crashing? + +If your plugin crashes, it might be due to several reasons. It could be related to incorrect use of the WasmEdge API, or the plugin may be incompatible with the WasmEdge version you're using. It's recommended to debug the plugin using a debugger tool to get more detailed error information. + +## 5. How to create a VM to call `infer()` in a Wasm library? + +You can use the WASI-NN API to call the `infer()` function in a Wasm library. First, you need to prepare the model, inputs, and outputs. Then, you can call the `infer()` function with these parameters. + +## 6. Can WasmEdge support Tensorflow as its inference backend using WASI-NN? + +Yes, WasmEdge can use Tensorflow as its inference backend through the WASI-NN API. + +## 7. How to read a host file in WasmEdge runtime? + +WasmEdge provides the WASI (WebAssembly System Interface) API for interacting with the host system, including file operations. You can use the WASI API to open and read files from the host system. + +## 8. Does WasmEdge only support one backend at the same time? + +WasmEdge can support multiple backends at the same time. For example, it can use both the interpreter and the AOT compiler as backends. However, only one backend can be active for a given Wasm module. + +Remember, this FAQ page is not exhaustive, and the WasmEdge community is always ready to help with any questions or issues you may have. Don't hesitate to reach out if you need assistance in our [Discord server](https://discord.gg/h4KDyB8XTt). From 8d2036363f8188b6f2d46b53cb5d1754ab375db1 Mon Sep 17 00:00:00 2001 From: Mahfuza Humayra Mohona Date: Sun, 19 Nov 2023 11:28:12 +0600 Subject: [PATCH 02/10] add style guide Signed-off-by: Mahfuza Humayra Mohona --- STYLE_GUIDE.md | 62 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 STYLE_GUIDE.md diff --git a/STYLE_GUIDE.md b/STYLE_GUIDE.md new file mode 100644 index 000000000..2421380ee --- /dev/null +++ b/STYLE_GUIDE.md @@ -0,0 +1,62 @@ +# WasmEdge Style Guide + +- [Documentation Style Guide](#documentation-style-guide) + - [Language](#language) + - [Structure and Format](#structure-and-format) + - [Content](#content) + - [Other Considerations](#other-considerations) +- [Coding Style Guide](#coding-style-guide) + - [Code Formatting](#code-formatting) + - [Code Quality](#code-quality) + - [Testing](#testing) + - [Security](#security) + +## Documentation Style Guide + +### Language + +- Use clear, simple, and concise language. Avoid jargon and technical terms as much as possible. If they are unavoidable, provide clear definitions or explanations. +- Write in the active voice and use the second person ("you") to make the documentation more user-oriented. + +### Structure and Format + +- Structure content with descriptive headings and subheadings. +- Make content more readable and easier to follow with bullet points and numbered lists. +- Include code examples and technical references where necessary. They should be well-formatted and easy to understand. Use code blocks and syntax highlighting for code examples. + +### Content + +- Start with an introduction that provides an overview of the topic. +- Provide step-by-step instructions and include code examples where necessary. +- Include a section on troubleshooting to help users solve common problems they might encounter. + +### Other Considerations + +- Encourage contributions from the community. Include a section explaining how users can contribute to the project. +- Regularly review the content and make updates as necessary. +- Ensure that the documentation is accessible to everyone. It should be easy to read, understand, and navigate. + +## Coding Style Guide + +### Code Formatting + +- Use consistent indentation. For example, you can choose to use spaces over tabs and stick with it throughout the project. +- Use meaningful variable, function, and class names. They should clearly indicate what the variable contains, what the function does, etc. +- Comment your code. Explain what each section or line of code does, especially if it involves complex logic. + +### Code Quality + +- Keep your code DRY (Don't Repeat Yourself). If you find yourself writing the same code in multiple places, consider creating a function or class. +- Write small, single-purpose functions. Each function should do one thing and do it well. +- Handle errors properly. Don't leave empty catch blocks in your code. + +### Testing + +- Write tests for your code. This helps to catch bugs early and makes sure that the code is working as expected. +- Follow a testing methodology, like unit testing or integration testing. + +### Security + +- Avoid code that might lead to security vulnerabilities, such as SQL injection. +- Use secure functions and libraries. +- Follow the security best practices provided by the CNCF. From 919948ef1d383f839cbfc7c0d8ee537490a277e8 Mon Sep 17 00:00:00 2001 From: Mahfuza Humayra Mohona Date: Tue, 19 Dec 2023 11:40:28 +0600 Subject: [PATCH 03/10] add hyperlink --- docs/develop/getting-started/faq.md | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/docs/develop/getting-started/faq.md b/docs/develop/getting-started/faq.md index 11d03a7ac..95530113d 100644 --- a/docs/develop/getting-started/faq.md +++ b/docs/develop/getting-started/faq.md @@ -4,23 +4,23 @@ sidebar_position: 4 # Frequently Asked Questions -This FAQ page is designed to address the most common technical inquiries about WasmEdge. If your question is not directly answered here, please refer to the comprehensive WasmEdge documentation or engage with the active WasmEdge community. +This FAQ page is designed to address the most common technical questions about WasmEdge. If your question is not directly answered here, please refer to the WasmEdge [documentation](https://wasmedge.org/docs/) or engage with the WasmEdge community via discord. ## 1. How does WasmEdge handle memory sharing between modules? -WasmEdge follows the WebAssembly specification, which currently does not support shared memory between different modules. Each module has its own linear memory space. +WasmEdge follows the WebAssembly specification, which currently does not support shared memory between different modules. Each module has its own linear memory space. This is because WebAssembly modules are isolated and cannot directly access each other's memory 1. However, it is possible to manually copy data from one module to another using host functions ## 2. Can WasmEdge support model training? -Currently, WasmEdge supports model inference. It uses the WASI-NN API to make predictions using pre-trained models. However, model training is not yet supported. +As of now, WasmEdge supports model inference. It uses the WASI-NN API to make predictions using pre-trained models. However, model training is not yet supported. It only allows for the execution of pre-trained models. ## 3. What is the internal flow of WasmEdge? -The WasmEdge runtime follows a general flow: parsing the Wasm file, validating the parsed Wasm file, compiling the validated Wasm file into native code, and then executing the compiled code. For more detailed information, please refer to the WasmEdge runtime architecture documentation. +The WasmEdge runtime follows a general flow: parsing the Wasm file, validating the parsed Wasm file, compiling the validated Wasm file into native code, and then executing the compiled code. For more detailed information, please refer to the WasmEdge runtime [documentation](https://wasmedge.org/docs/). ## 4. Why is my plugin crashing? -If your plugin crashes, it might be due to several reasons. It could be related to incorrect use of the WasmEdge API, or the plugin may be incompatible with the WasmEdge version you're using. It's recommended to debug the plugin using a debugger tool to get more detailed error information. +If your plugin crashes, it might be due to several reasons. It could be related to incorrect use of the WasmEdge API, or the plugin may be incompatible with the WasmEdge version you're using. It's recommended to debug the plugin using a debugger tool to get more detailed error information. Also it you should check the [plug-in documentation](...contribute/plugin/test_plugin.md) ## 5. How to create a VM to call `infer()` in a Wasm library? @@ -28,14 +28,11 @@ You can use the WASI-NN API to call the `infer()` function in a Wasm library. Fi ## 6. Can WasmEdge support Tensorflow as its inference backend using WASI-NN? -Yes, WasmEdge can use Tensorflow as its inference backend through the WASI-NN API. +Yes, WasmEdge can use Tensorflow as its [inference](https://wasmedge.org/docs/embed/go/ai/) backend through the WASI-NN API. ## 7. How to read a host file in WasmEdge runtime? -WasmEdge provides the WASI (WebAssembly System Interface) API for interacting with the host system, including file operations. You can use the WASI API to open and read files from the host system. +WasmEdge provides the WASI (WebAssembly System Interface) API for interacting with the host system, including file operations. You can use the [WASI API](https://wasmedge.org/docs/embed/go/reference/0.11.x?_highlight=wasi&_highlight=api#preregistrations) to open and read files from the host system. -## 8. Does WasmEdge only support one backend at the same time? -WasmEdge can support multiple backends at the same time. For example, it can use both the interpreter and the AOT compiler as backends. However, only one backend can be active for a given Wasm module. - -Remember, this FAQ page is not exhaustive, and the WasmEdge community is always ready to help with any questions or issues you may have. Don't hesitate to reach out if you need assistance in our [Discord server](https://discord.gg/h4KDyB8XTt). +Please remember, this FAQ page is not exhaustive, and the WasmEdge community is always ready to help with any questions or issues you may have. Don't hesitate to reach out if you need assistance in our [Discord server](https://discord.gg/h4KDyB8XTt). From a9ee642acc2db71944cc6311452bf99c0d4800c1 Mon Sep 17 00:00:00 2001 From: Mahfuza Humayra Mohona Date: Tue, 19 Dec 2023 11:41:53 +0600 Subject: [PATCH 04/10] update other file Signed-off-by: Mahfuza Humayra Mohona --- .../current/develop/getting-started/faq.md | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/develop/getting-started/faq.md b/i18n/zh/docusaurus-plugin-content-docs/current/develop/getting-started/faq.md index 11d03a7ac..95530113d 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/develop/getting-started/faq.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/develop/getting-started/faq.md @@ -4,23 +4,23 @@ sidebar_position: 4 # Frequently Asked Questions -This FAQ page is designed to address the most common technical inquiries about WasmEdge. If your question is not directly answered here, please refer to the comprehensive WasmEdge documentation or engage with the active WasmEdge community. +This FAQ page is designed to address the most common technical questions about WasmEdge. If your question is not directly answered here, please refer to the WasmEdge [documentation](https://wasmedge.org/docs/) or engage with the WasmEdge community via discord. ## 1. How does WasmEdge handle memory sharing between modules? -WasmEdge follows the WebAssembly specification, which currently does not support shared memory between different modules. Each module has its own linear memory space. +WasmEdge follows the WebAssembly specification, which currently does not support shared memory between different modules. Each module has its own linear memory space. This is because WebAssembly modules are isolated and cannot directly access each other's memory 1. However, it is possible to manually copy data from one module to another using host functions ## 2. Can WasmEdge support model training? -Currently, WasmEdge supports model inference. It uses the WASI-NN API to make predictions using pre-trained models. However, model training is not yet supported. +As of now, WasmEdge supports model inference. It uses the WASI-NN API to make predictions using pre-trained models. However, model training is not yet supported. It only allows for the execution of pre-trained models. ## 3. What is the internal flow of WasmEdge? -The WasmEdge runtime follows a general flow: parsing the Wasm file, validating the parsed Wasm file, compiling the validated Wasm file into native code, and then executing the compiled code. For more detailed information, please refer to the WasmEdge runtime architecture documentation. +The WasmEdge runtime follows a general flow: parsing the Wasm file, validating the parsed Wasm file, compiling the validated Wasm file into native code, and then executing the compiled code. For more detailed information, please refer to the WasmEdge runtime [documentation](https://wasmedge.org/docs/). ## 4. Why is my plugin crashing? -If your plugin crashes, it might be due to several reasons. It could be related to incorrect use of the WasmEdge API, or the plugin may be incompatible with the WasmEdge version you're using. It's recommended to debug the plugin using a debugger tool to get more detailed error information. +If your plugin crashes, it might be due to several reasons. It could be related to incorrect use of the WasmEdge API, or the plugin may be incompatible with the WasmEdge version you're using. It's recommended to debug the plugin using a debugger tool to get more detailed error information. Also it you should check the [plug-in documentation](...contribute/plugin/test_plugin.md) ## 5. How to create a VM to call `infer()` in a Wasm library? @@ -28,14 +28,11 @@ You can use the WASI-NN API to call the `infer()` function in a Wasm library. Fi ## 6. Can WasmEdge support Tensorflow as its inference backend using WASI-NN? -Yes, WasmEdge can use Tensorflow as its inference backend through the WASI-NN API. +Yes, WasmEdge can use Tensorflow as its [inference](https://wasmedge.org/docs/embed/go/ai/) backend through the WASI-NN API. ## 7. How to read a host file in WasmEdge runtime? -WasmEdge provides the WASI (WebAssembly System Interface) API for interacting with the host system, including file operations. You can use the WASI API to open and read files from the host system. +WasmEdge provides the WASI (WebAssembly System Interface) API for interacting with the host system, including file operations. You can use the [WASI API](https://wasmedge.org/docs/embed/go/reference/0.11.x?_highlight=wasi&_highlight=api#preregistrations) to open and read files from the host system. -## 8. Does WasmEdge only support one backend at the same time? -WasmEdge can support multiple backends at the same time. For example, it can use both the interpreter and the AOT compiler as backends. However, only one backend can be active for a given Wasm module. - -Remember, this FAQ page is not exhaustive, and the WasmEdge community is always ready to help with any questions or issues you may have. Don't hesitate to reach out if you need assistance in our [Discord server](https://discord.gg/h4KDyB8XTt). +Please remember, this FAQ page is not exhaustive, and the WasmEdge community is always ready to help with any questions or issues you may have. Don't hesitate to reach out if you need assistance in our [Discord server](https://discord.gg/h4KDyB8XTt). From d514133d59b37a2816065bd273762b18e3758f7e Mon Sep 17 00:00:00 2001 From: Mahfuza Humayra Mohona Date: Tue, 19 Dec 2023 11:44:21 +0600 Subject: [PATCH 05/10] fix hyperlink Signed-off-by: Mahfuza Humayra Mohona --- docs/develop/getting-started/faq.md | 2 +- .../current/develop/getting-started/faq.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/develop/getting-started/faq.md b/docs/develop/getting-started/faq.md index 95530113d..5cf85d48a 100644 --- a/docs/develop/getting-started/faq.md +++ b/docs/develop/getting-started/faq.md @@ -20,7 +20,7 @@ The WasmEdge runtime follows a general flow: parsing the Wasm file, validating t ## 4. Why is my plugin crashing? -If your plugin crashes, it might be due to several reasons. It could be related to incorrect use of the WasmEdge API, or the plugin may be incompatible with the WasmEdge version you're using. It's recommended to debug the plugin using a debugger tool to get more detailed error information. Also it you should check the [plug-in documentation](...contribute/plugin/test_plugin.md) +If your plugin crashes, it might be due to several reasons. It could be related to incorrect use of the WasmEdge API, or the plugin may be incompatible with the WasmEdge version you're using. It's recommended to debug the plugin using a debugger tool to get more detailed error information. Also it you should check the [plug-in documentation](.../contribute/plugin/test_plugin.md) ## 5. How to create a VM to call `infer()` in a Wasm library? diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/develop/getting-started/faq.md b/i18n/zh/docusaurus-plugin-content-docs/current/develop/getting-started/faq.md index 95530113d..5cf85d48a 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/develop/getting-started/faq.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/develop/getting-started/faq.md @@ -20,7 +20,7 @@ The WasmEdge runtime follows a general flow: parsing the Wasm file, validating t ## 4. Why is my plugin crashing? -If your plugin crashes, it might be due to several reasons. It could be related to incorrect use of the WasmEdge API, or the plugin may be incompatible with the WasmEdge version you're using. It's recommended to debug the plugin using a debugger tool to get more detailed error information. Also it you should check the [plug-in documentation](...contribute/plugin/test_plugin.md) +If your plugin crashes, it might be due to several reasons. It could be related to incorrect use of the WasmEdge API, or the plugin may be incompatible with the WasmEdge version you're using. It's recommended to debug the plugin using a debugger tool to get more detailed error information. Also it you should check the [plug-in documentation](.../contribute/plugin/test_plugin.md) ## 5. How to create a VM to call `infer()` in a Wasm library? From 7cbf126a9ea0fe3ddce20f281cafcddff4bcd7d2 Mon Sep 17 00:00:00 2001 From: Mahfuza Humayra Mohona Date: Sat, 6 Jan 2024 07:39:29 +0600 Subject: [PATCH 06/10] fix hyperlink --- docs/develop/getting-started/faq.md | 2 +- .../current/develop/getting-started/faq.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/develop/getting-started/faq.md b/docs/develop/getting-started/faq.md index 5cf85d48a..ee3d128c1 100644 --- a/docs/develop/getting-started/faq.md +++ b/docs/develop/getting-started/faq.md @@ -20,7 +20,7 @@ The WasmEdge runtime follows a general flow: parsing the Wasm file, validating t ## 4. Why is my plugin crashing? -If your plugin crashes, it might be due to several reasons. It could be related to incorrect use of the WasmEdge API, or the plugin may be incompatible with the WasmEdge version you're using. It's recommended to debug the plugin using a debugger tool to get more detailed error information. Also it you should check the [plug-in documentation](.../contribute/plugin/test_plugin.md) +If your plugin crashes, it might be due to several reasons. It could be related to incorrect use of the WasmEdge API, or the plugin may be incompatible with the WasmEdge version you're using. It's recommended to debug the plugin using a debugger tool to get more detailed error information. Also it you should check the [plug-in documentation](../contribute/plugin/test_plugin.md) ## 5. How to create a VM to call `infer()` in a Wasm library? diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/develop/getting-started/faq.md b/i18n/zh/docusaurus-plugin-content-docs/current/develop/getting-started/faq.md index 5cf85d48a..ee3d128c1 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/develop/getting-started/faq.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/develop/getting-started/faq.md @@ -20,7 +20,7 @@ The WasmEdge runtime follows a general flow: parsing the Wasm file, validating t ## 4. Why is my plugin crashing? -If your plugin crashes, it might be due to several reasons. It could be related to incorrect use of the WasmEdge API, or the plugin may be incompatible with the WasmEdge version you're using. It's recommended to debug the plugin using a debugger tool to get more detailed error information. Also it you should check the [plug-in documentation](.../contribute/plugin/test_plugin.md) +If your plugin crashes, it might be due to several reasons. It could be related to incorrect use of the WasmEdge API, or the plugin may be incompatible with the WasmEdge version you're using. It's recommended to debug the plugin using a debugger tool to get more detailed error information. Also it you should check the [plug-in documentation](../contribute/plugin/test_plugin.md) ## 5. How to create a VM to call `infer()` in a Wasm library? From 79fe907884ba4a71f575c5275f0bc5ffb16f4d3a Mon Sep 17 00:00:00 2001 From: Mahfuza Humayra Mohona Date: Sat, 6 Jan 2024 07:41:21 +0600 Subject: [PATCH 07/10] hyperlink --- docs/develop/getting-started/faq.md | 2 +- .../current/develop/getting-started/faq.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/develop/getting-started/faq.md b/docs/develop/getting-started/faq.md index ee3d128c1..9e9f685ab 100644 --- a/docs/develop/getting-started/faq.md +++ b/docs/develop/getting-started/faq.md @@ -20,7 +20,7 @@ The WasmEdge runtime follows a general flow: parsing the Wasm file, validating t ## 4. Why is my plugin crashing? -If your plugin crashes, it might be due to several reasons. It could be related to incorrect use of the WasmEdge API, or the plugin may be incompatible with the WasmEdge version you're using. It's recommended to debug the plugin using a debugger tool to get more detailed error information. Also it you should check the [plug-in documentation](../contribute/plugin/test_plugin.md) +If your plugin crashes, it might be due to several reasons. It could be related to incorrect use of the WasmEdge API, or the plugin may be incompatible with the WasmEdge version you're using. It's recommended to debug the plugin using a debugger tool to get more detailed error information. Also it you should check the [plug-in documentation](..../contribute/plugin/test_plugin.md) ## 5. How to create a VM to call `infer()` in a Wasm library? diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/develop/getting-started/faq.md b/i18n/zh/docusaurus-plugin-content-docs/current/develop/getting-started/faq.md index ee3d128c1..9e9f685ab 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/develop/getting-started/faq.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/develop/getting-started/faq.md @@ -20,7 +20,7 @@ The WasmEdge runtime follows a general flow: parsing the Wasm file, validating t ## 4. Why is my plugin crashing? -If your plugin crashes, it might be due to several reasons. It could be related to incorrect use of the WasmEdge API, or the plugin may be incompatible with the WasmEdge version you're using. It's recommended to debug the plugin using a debugger tool to get more detailed error information. Also it you should check the [plug-in documentation](../contribute/plugin/test_plugin.md) +If your plugin crashes, it might be due to several reasons. It could be related to incorrect use of the WasmEdge API, or the plugin may be incompatible with the WasmEdge version you're using. It's recommended to debug the plugin using a debugger tool to get more detailed error information. Also it you should check the [plug-in documentation](..../contribute/plugin/test_plugin.md) ## 5. How to create a VM to call `infer()` in a Wasm library? From c4e3910c110325667600d9ba995930fe1e71e677 Mon Sep 17 00:00:00 2001 From: Mahfuza Humayra Mohona Date: Sat, 6 Jan 2024 07:44:11 +0600 Subject: [PATCH 08/10] hyperlink --- docs/develop/getting-started/faq.md | 2 +- .../current/develop/getting-started/faq.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/develop/getting-started/faq.md b/docs/develop/getting-started/faq.md index 9e9f685ab..74102e902 100644 --- a/docs/develop/getting-started/faq.md +++ b/docs/develop/getting-started/faq.md @@ -20,7 +20,7 @@ The WasmEdge runtime follows a general flow: parsing the Wasm file, validating t ## 4. Why is my plugin crashing? -If your plugin crashes, it might be due to several reasons. It could be related to incorrect use of the WasmEdge API, or the plugin may be incompatible with the WasmEdge version you're using. It's recommended to debug the plugin using a debugger tool to get more detailed error information. Also it you should check the [plug-in documentation](..../contribute/plugin/test_plugin.md) +If your plugin crashes, it might be due to several reasons. It could be related to incorrect use of the WasmEdge API, or the plugin may be incompatible with the WasmEdge version you're using. It's recommended to debug the plugin using a debugger tool to get more detailed error information. Also it you should check the [plug-in documentation](./contribute/plugin/test_plugin.md) ## 5. How to create a VM to call `infer()` in a Wasm library? diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/develop/getting-started/faq.md b/i18n/zh/docusaurus-plugin-content-docs/current/develop/getting-started/faq.md index 9e9f685ab..74102e902 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/develop/getting-started/faq.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/develop/getting-started/faq.md @@ -20,7 +20,7 @@ The WasmEdge runtime follows a general flow: parsing the Wasm file, validating t ## 4. Why is my plugin crashing? -If your plugin crashes, it might be due to several reasons. It could be related to incorrect use of the WasmEdge API, or the plugin may be incompatible with the WasmEdge version you're using. It's recommended to debug the plugin using a debugger tool to get more detailed error information. Also it you should check the [plug-in documentation](..../contribute/plugin/test_plugin.md) +If your plugin crashes, it might be due to several reasons. It could be related to incorrect use of the WasmEdge API, or the plugin may be incompatible with the WasmEdge version you're using. It's recommended to debug the plugin using a debugger tool to get more detailed error information. Also it you should check the [plug-in documentation](./contribute/plugin/test_plugin.md) ## 5. How to create a VM to call `infer()` in a Wasm library? From 09bfb4bd2bd5e27045d6254b20c687c8c061eaef Mon Sep 17 00:00:00 2001 From: Mahfuza Humayra Mohona Date: Sat, 6 Jan 2024 07:48:49 +0600 Subject: [PATCH 09/10] hyperlink --- docs/develop/getting-started/faq.md | 2 +- .../current/develop/getting-started/faq.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/develop/getting-started/faq.md b/docs/develop/getting-started/faq.md index 74102e902..de9ef6f42 100644 --- a/docs/develop/getting-started/faq.md +++ b/docs/develop/getting-started/faq.md @@ -20,7 +20,7 @@ The WasmEdge runtime follows a general flow: parsing the Wasm file, validating t ## 4. Why is my plugin crashing? -If your plugin crashes, it might be due to several reasons. It could be related to incorrect use of the WasmEdge API, or the plugin may be incompatible with the WasmEdge version you're using. It's recommended to debug the plugin using a debugger tool to get more detailed error information. Also it you should check the [plug-in documentation](./contribute/plugin/test_plugin.md) +If your plugin crashes, it might be due to several reasons. It could be related to incorrect use of the WasmEdge API, or the plugin may be incompatible with the WasmEdge version you're using. It's recommended to debug the plugin using a debugger tool to get more detailed error information. Also it you should check the [plug-in documentation](https://wasmedge.org/docs/contribute/plugin/test_plugin) ## 5. How to create a VM to call `infer()` in a Wasm library? diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/develop/getting-started/faq.md b/i18n/zh/docusaurus-plugin-content-docs/current/develop/getting-started/faq.md index 74102e902..de9ef6f42 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/develop/getting-started/faq.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/develop/getting-started/faq.md @@ -20,7 +20,7 @@ The WasmEdge runtime follows a general flow: parsing the Wasm file, validating t ## 4. Why is my plugin crashing? -If your plugin crashes, it might be due to several reasons. It could be related to incorrect use of the WasmEdge API, or the plugin may be incompatible with the WasmEdge version you're using. It's recommended to debug the plugin using a debugger tool to get more detailed error information. Also it you should check the [plug-in documentation](./contribute/plugin/test_plugin.md) +If your plugin crashes, it might be due to several reasons. It could be related to incorrect use of the WasmEdge API, or the plugin may be incompatible with the WasmEdge version you're using. It's recommended to debug the plugin using a debugger tool to get more detailed error information. Also it you should check the [plug-in documentation](https://wasmedge.org/docs/contribute/plugin/test_plugin) ## 5. How to create a VM to call `infer()` in a Wasm library? From e83f6f79efdb1d03c2e263ef8dad86ab451319b6 Mon Sep 17 00:00:00 2001 From: Mahfuza Humayra Mohona Date: Sat, 6 Jan 2024 07:51:33 +0600 Subject: [PATCH 10/10] added hyperlink --- docs/develop/getting-started/faq.md | 2 +- .../current/develop/getting-started/faq.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/develop/getting-started/faq.md b/docs/develop/getting-started/faq.md index de9ef6f42..ca41ca97c 100644 --- a/docs/develop/getting-started/faq.md +++ b/docs/develop/getting-started/faq.md @@ -12,7 +12,7 @@ WasmEdge follows the WebAssembly specification, which currently does not support ## 2. Can WasmEdge support model training? -As of now, WasmEdge supports model inference. It uses the WASI-NN API to make predictions using pre-trained models. However, model training is not yet supported. It only allows for the execution of pre-trained models. +As of now, WasmEdge supports [model inference](https://www.secondstate.io/articles/fast-llm-inference/). It uses the WASI-NN API to make predictions using pre-trained models. However, model training is not yet supported. It only allows for the execution of pre-trained models. ## 3. What is the internal flow of WasmEdge? diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/develop/getting-started/faq.md b/i18n/zh/docusaurus-plugin-content-docs/current/develop/getting-started/faq.md index de9ef6f42..ca41ca97c 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/develop/getting-started/faq.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/develop/getting-started/faq.md @@ -12,7 +12,7 @@ WasmEdge follows the WebAssembly specification, which currently does not support ## 2. Can WasmEdge support model training? -As of now, WasmEdge supports model inference. It uses the WASI-NN API to make predictions using pre-trained models. However, model training is not yet supported. It only allows for the execution of pre-trained models. +As of now, WasmEdge supports [model inference](https://www.secondstate.io/articles/fast-llm-inference/). It uses the WASI-NN API to make predictions using pre-trained models. However, model training is not yet supported. It only allows for the execution of pre-trained models. ## 3. What is the internal flow of WasmEdge?