-
Notifications
You must be signed in to change notification settings - Fork 192
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add customized side by side project into ITREX Signed-off-by: Yue, Wenjiao <wenjiao.yue@intel.com>
- Loading branch information
1 parent
b8da736
commit 5835c38
Showing
44 changed files
with
11,948 additions
and
0 deletions.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
intel_extension_for_transformers/neural_chat/ui/customized/side_by_side/.editorconfig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[*] | ||
indent_style = tab | ||
|
||
[package.json] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[*.md] | ||
indent_style = space | ||
indent_size = 2 |
4 changes: 4 additions & 0 deletions
4
intel_extension_for_transformers/neural_chat/ui/customized/side_by_side/.env
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
CHAT_A100_URL = '' | ||
CHAT_GAUDI2_URL = '' | ||
KNOWLEDGE_A100_URL = '' | ||
KNOWLEDGE_GAUDI2_URL = '' |
13 changes: 13 additions & 0 deletions
13
intel_extension_for_transformers/neural_chat/ui/customized/side_by_side/.eslintignore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
.DS_Store | ||
node_modules | ||
/build | ||
/.svelte-kit | ||
/package | ||
.env | ||
.env.* | ||
!.env.example | ||
|
||
# Ignore files for PNPM, NPM and YARN | ||
pnpm-lock.yaml | ||
package-lock.json | ||
yarn.lock |
24 changes: 24 additions & 0 deletions
24
intel_extension_for_transformers/neural_chat/ui/customized/side_by_side/.eslintrc.cjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
module.exports = { | ||
root: true, | ||
parser: "@typescript-eslint/parser", | ||
extends: [ | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"prettier", | ||
], | ||
plugins: ["svelte3", "@typescript-eslint", "neverthrow"], | ||
ignorePatterns: ["*.cjs"], | ||
overrides: [{ files: ["*.svelte"], processor: "svelte3/svelte3" }], | ||
settings: { | ||
"svelte3/typescript": () => require("typescript"), | ||
}, | ||
parserOptions: { | ||
sourceType: "module", | ||
ecmaVersion: 2020, | ||
}, | ||
env: { | ||
browser: true, | ||
es2017: true, | ||
node: true, | ||
}, | ||
}; |
13 changes: 13 additions & 0 deletions
13
intel_extension_for_transformers/neural_chat/ui/customized/side_by_side/.prettierignore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
.DS_Store | ||
node_modules | ||
/build | ||
/.svelte-kit | ||
/package | ||
.env | ||
.env.* | ||
!.env.example | ||
|
||
# Ignore files for PNPM, NPM and YARN | ||
pnpm-lock.yaml | ||
package-lock.json | ||
yarn.lock |
13 changes: 13 additions & 0 deletions
13
intel_extension_for_transformers/neural_chat/ui/customized/side_by_side/.prettierrc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"pluginSearchDirs": [ | ||
"." | ||
], | ||
"overrides": [ | ||
{ | ||
"files": "*.svelte", | ||
"options": { | ||
"parser": "svelte" | ||
} | ||
} | ||
] | ||
} |
34 changes: 34 additions & 0 deletions
34
intel_extension_for_transformers/neural_chat/ui/customized/side_by_side/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<h1 align="center" id="title"><img align="center" src="./static/favicon.png" alt="project-image" width="50" height="50"> | ||
Side By Side</h1> | ||
|
||
### 📸 Project Screenshots | ||
|
||
![project-screenshot](https://imgur.com/6mf33rM.png) | ||
![project-screenshot](https://imgur.com/DJCXwNL.png) | ||
![project-screenshot](https://imgur.com/1XhrYdA.png) | ||
|
||
|
||
<h2>🧐 Features</h2> | ||
|
||
Here're some of the project's features: | ||
|
||
- Start a Text Chat:Compare the performance in output quality and response time between Gaudi2 and A100 using textual conversations. | ||
- Compare Concurrency Across Machines:One machine concurrently processes multiple requests and compares the time taken for each chat processing. | ||
- Upload File: The choice between uploading locally or copying a remote link. Chat according to uploaded knowledge base. | ||
|
||
<h2>🛠️ Get it Running:</h2> | ||
|
||
1. Clone the repo. | ||
|
||
2. cd command to the current folder. | ||
|
||
3. Modify the required .env variables. | ||
``` | ||
CHAT_A100_URL = '' | ||
CHAT_GAUDI2_URL = '' | ||
KNOWLEDGE_A100_URL = '' | ||
KNOWLEDGE_GAUDI2_URL = '' | ||
``` | ||
4. Execute `npm install` to install the corresponding dependencies. | ||
|
||
5. Execute `npm run dev` in both environments |
Oops, something went wrong.