Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
ccran
/
lufa-contract
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
3f7f704b
authored
Jun 03, 2026
by
ccran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: update batch config;
parent
663fd9f2
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
6 deletions
+11
-6
core/config.py
+3
-2
data/batch/batch.py
+4
-3
main.py
+4
-1
No files found.
core/config.py
View file @
3f7f704b
...
...
@@ -19,9 +19,9 @@ class LLMConfig:
model
:
str
=
"Qwen2-72B-Instruct"
#
MAX_SINGLE_CHUNK_SIZE=100000
MAX_SINGLE_CHUNK_SIZE
=
100000
MERGE_RULE_PROMPT
=
False
MAX_SINGLE_CHUNK_SIZE
=
5000
#
MAX_SINGLE_CHUNK_SIZE = 5000
META_KEY
=
"META"
DEFAULT_RULESET_ID
=
"通用"
## 规则集ID列表,需与rules.xlsx中的sheet名称保持一致!!!
...
...
@@ -48,6 +48,7 @@ FILE_SUFFIX = "-审核批注"
use_non_fastgpt_llm
=
False
use_lufa
=
False
use_jp_machine
=
True
debug_mode
=
True
## 关键参数**
max_model_len
=
131072
...
...
data/batch/batch.py
View file @
3f7f704b
...
...
@@ -19,11 +19,12 @@ batch_size = 5
if
not
use_lufa
:
SUFFIX
=
"_麓发迁移"
batch_input_dir_path
=
"jp-input"
batch_output_dir_path
=
f
"/
home/ccran/lufa
-contract/data/benchmark/results/jp-output-lufa-{time.strftime('
%
Y
%
m
%
d-
%
H
%
M
%
S', time.localtime())}"
batch_output_dir_path
=
f
"/
data/home/htsc/jp
-contract/data/benchmark/results/jp-output-lufa-{time.strftime('
%
Y
%
m
%
d-
%
H
%
M
%
S', time.localtime())}"
# 金盘fastgpt接口
url
=
"http://1
92.168.252.71:18088
/api/v1/chat/completions"
url
=
"http://1
72.21.107.45:3002
/api/v1/chat/completions"
# 金盘迁移麓发合同审查测试token
token
=
"fastgpt-vykT6qs07g7hR4tL2MNJE6DdNCIxaQjEu3Cxw9nuTBFg8MAG3CkByvnXKxSNEyMK7"
# token = "fastgpt-vykT6qs07g7hR4tL2MNJE6DdNCIxaQjEu3Cxw9nuTBFg8MAG3CkByvnXKxSNEyMK7"
token
=
'fastgpt-pYh0DgMVPDh9DptmznbSz7fRAqS41Z7gUWWIPM0112APpMlbb8mc1iztJi'
# 人机交互测试(测试环境)
# token = 'fastgpt-p189K5zoTX5wjp0dBybFCwsbWm3juIwlJxt2wTGyiaOWOANI5Y10pKEZzyt'
# 人机交互测试(生产环境)
...
...
main.py
View file @
3f7f704b
...
...
@@ -19,7 +19,8 @@ from core.config import (
pdf_support_formats
,
MERGE_RULE_PROMPT
,
use_lufa
,
max_model_len
max_model_len
,
debug_mode
,
)
from
core.tools.segment_summary
import
SegmentSummaryTool
from
core.tools.segment_review
import
SegmentReviewTool
...
...
@@ -710,4 +711,6 @@ if __name__ == "__main__":
port
=
18168
else
:
port
=
18169
if
debug_mode
:
port
+=
10
uvicorn
.
run
(
"main:app"
,
host
=
"0.0.0.0"
,
port
=
port
,
log_level
=
"info"
,
reload
=
False
)
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