Skip to content
This repository was archived by the owner on Oct 25, 2024. It is now read-only.

Commit 674ae4d

Browse files
Fix some link issues in NeuralChat (#714)
1 parent d9a8641 commit 674ae4d

File tree

6 files changed

+24
-6
lines changed

6 files changed

+24
-6
lines changed

intel_extension_for_transformers/neural_chat/examples/deployment/photo_ai/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ Welcome to Photo AI! This example introduces how to deploy the Text Chatbot syst
33
| Section | Link |
44
| ---------------------| --------------------------|
55
| Backend Setup | [Backend README](./backend/README.md) |
6-
| Frontend Setup | [Frontend README](./frontend/README.md) |
6+
| Frontend Setup | [Frontend README](../../../ui/talking_photo/README.md) |
77

88

intel_extension_for_transformers/neural_chat/examples/deployment/talkingbot/server/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ Welcome to Talkingbot! This example introduces how to deploy the Talkingbot syst
33
| Section | Link |
44
| ---------------------| --------------------------|
55
| Backend Setup | [Backend README](./backend/README.md) |
6-
| Frontend Setup | [Frontend README](../../ui/talkingbot/README.md) |
6+
| Frontend Setup | [Frontend README](../../../../ui/talkingbot/README.md) |
77

intel_extension_for_transformers/neural_chat/examples/deployment/textbot/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Welcome to the Text Chatbot! This example introduces how to deploy the Text Chat
33
| Section | Link |
44
| ---------------------| --------------------------|
55
| Backend Setup | [Backend README](./backend/README.md) |
6-
| Frontend Setup | [Frontend README](../../ui/textbot/README.md) |
6+
| Frontend Setup | [Frontend README](../../../ui/textbot/README.md) |
77

88
You can enhance the capabilities of the Text Chatbot by enabling plugins, such as the cache plugin. This plugin is designed to help you reduce costs effectively by caching query results, resulting in fewer requests and tokens sent to the Language Model service. As a result, it offers superior query throughput compared to standard Language Model services. To deploy a Text Chatbot with caching functionality, please refer to the instructions provided in the [README](./backend_with_cache/README.md) for backend setup.
99

intel_extension_for_transformers/neural_chat/tests/nightly/models/test_model.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,26 @@ def test_get_default_conv_template_v1(self):
105105
def test_get_default_conv_template_v2(self):
106106
result = NeuralChatModel().get_default_conv_template(model_path='Intel/neural-chat-7b-v2')
107107
self.assertIn("### System:", str(result))
108+
config = PipelineConfig(model_name_or_path="Intel/neural-chat-7b-v2")
109+
chatbot = build_chatbot(config=config)
110+
result = chatbot.predict("Tell me about Intel Xeon Scalable Processors.")
111+
self.assertIn('The Intel Xeon Scalable Processors', str(result))
112+
113+
def test_get_default_conv_template_v3(self):
114+
result = NeuralChatModel().get_default_conv_template(model_path='Intel/neural-chat-7b-v3')
115+
self.assertIn("### System:", str(result))
116+
config = PipelineConfig(model_name_or_path="Intel/neural-chat-7b-v3")
117+
chatbot = build_chatbot(config=config)
118+
result = chatbot.predict("Tell me about Intel Xeon Scalable Processors.")
119+
self.assertIn('The Intel Xeon Scalable Processors', str(result))
120+
121+
def test_get_default_conv_template_v3_1(self):
122+
result = NeuralChatModel().get_default_conv_template(model_path='Intel/neural-chat-7b-v3-1')
123+
self.assertIn("### System:", str(result))
124+
config = PipelineConfig(model_name_or_path="Intel/neural-chat-7b-v3-1")
125+
chatbot = build_chatbot(config=config)
126+
result = chatbot.predict("Tell me about Intel Xeon Scalable Processors.")
127+
self.assertIn('The Intel Xeon Scalable Processors', str(result))
108128

109129
def test_get_default_conv_template_v3(self):
110130
result = NeuralChatModel().get_default_conv_template(model_path='Intel/neural-chat-7b-v3')

intel_extension_for_transformers/neural_chat/ui/textbot/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ We recommend using Gradio as the Space SDK, keeping the default values for the o
1717
For detailed information about the configuration settings, please refer to the [Hugging Face Spaces Config Reference](https://huggingface.co/docs/hub/spaces-config-reference).
1818

1919
## 🚀 Setup application
20-
We strongly recommend utilizing the provided textbot frontend code as it represents the reference implementation already deployed on Hugging Face Space. To establish your application, simply copy the code files from this directory and adjust their configurations as necessary. Alternatively, you have the option to clone the existing space from [https://huggingface.co/spaces/Intel/NeuralChat-GNR-1](https://huggingface.co/spaces/Intel/NeuralChat-GNR-1).
20+
We strongly recommend utilizing the provided textbot frontend code as it represents the reference implementation already deployed on Hugging Face Space. To establish your application, simply copy the code files from this directory and adjust their configurations as necessary. Alternatively, you have the option to clone the existing space from [NeuralChat-ICX-INT4](https://huggingface.co/spaces/Intel/NeuralChat-ICX-INT4).
2121

2222
![Clone Space](https://i.imgur.com/76N8m5B.png)
2323

workflows/chatbot/demo/advanced_frontend/README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
<h2>🚀 Demo</h2>
44

5-
[http://neuralstudio.intel.com/NeuralChat](http://neuralstudio.intel.com/NeuralChat)
6-
75
<h2>📸 Project Screenshots:</h2>
86

97
<img src="https://imgur.com/04qfWb8.png" alt="project-screenshot" width="800" height="400/">

0 commit comments

Comments
 (0)