Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ox696c
ktransformers
Commits
0262f954
Commit
0262f954
authored
Feb 06, 2025
by
liam
Browse files
Merge branch 'feat-DeepSeekV3' of github.com:kvcache-ai/ktransformers into feat-DeepSeekV3
parents
3dca28d2
027b1126
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
ktransformers/local_chat.py
ktransformers/local_chat.py
+2
-0
No files found.
ktransformers/local_chat.py
View file @
0262f954
...
@@ -81,8 +81,10 @@ def local_chat():
...
@@ -81,8 +81,10 @@ def local_chat():
content
=
"hi"
content
=
"hi"
else
:
else
:
content
=
open
(
config
.
prompt_file
,
"r"
).
read
()
content
=
open
(
config
.
prompt_file
,
"r"
).
read
()
print
(
"User: "
,
content
)
elif
os
.
path
.
isfile
(
content
):
elif
os
.
path
.
isfile
(
content
):
content
=
open
(
content
,
"r"
).
read
()
content
=
open
(
content
,
"r"
).
read
()
print
(
"User: "
,
content
)
messages
=
his_content
+
[{
"role"
:
"user"
,
"content"
:
content
}]
messages
=
his_content
+
[{
"role"
:
"user"
,
"content"
:
content
}]
async
def
async_inference
(
messages
):
async
def
async_inference
(
messages
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment