Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
codecritic
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ziyuan Nan
codecritic
Commits
89c84aef
Commit
89c84aef
authored
Oct 25, 2024
by
nzy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
step1: merge mk_prompt and sample
parent
4fdf6d7d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
14 deletions
+10
-14
step1_sample_apps.py
+10
-2
step1_sample_code.py
+0
-12
No files found.
step1_
mk_prompt
.py
→
step1_
sample_apps
.py
View file @
89c84aef
...
@@ -64,4 +64,12 @@ def mk_sample_prompt(model_path, apps_path, output_path):
...
@@ -64,4 +64,12 @@ def mk_sample_prompt(model_path, apps_path, output_path):
if
__name__
==
"__main__"
:
if
__name__
==
"__main__"
:
cfg
=
read_config
()
cfg
=
read_config
()
mk_sample_prompt
(
cfg
[
"model"
],
cfg
[
"apps"
],
cfg
[
"sample"
][
"sample_prompt_path"
])
mk_sample_prompt
(
cfg
[
"model"
],
cfg
[
"apps"
],
cfg
[
"sample"
][
"sample_prompt_path"
])
\ No newline at end of file
from
utils_vllm
import
vllm_chatcomplete
vllm_chatcomplete
(
cfg
[
"model"
],
cfg
[
"sample"
][
"sample_prompt_path"
],
cfg
[
"sample"
][
"sample_result_path"
],
cfg
[
"sample"
][
"sampling_params"
],
)
\ No newline at end of file
step1_sample_code.py
deleted
100644 → 0
View file @
4fdf6d7d
from
utils_vllm
import
vllm_chatcomplete
from
utils
import
read_config
if
__name__
==
"__main__"
:
cfg
=
read_config
()
vllm_chatcomplete
(
cfg
[
"model"
],
cfg
[
"sample"
][
"sample_prompt_path"
],
cfg
[
"sample"
][
"sample_result_path"
],
cfg
[
"sample"
][
"sampling_params"
],
)
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