to-164
This commit is contained in:
Executable
+38
@@ -0,0 +1,38 @@
|
||||
from aiDataParser import AsyncCore
|
||||
from pydantic import BaseModel
|
||||
from typing import List, Optional
|
||||
|
||||
|
||||
class Description(BaseModel):
|
||||
name: str
|
||||
description: str
|
||||
|
||||
|
||||
class Data(BaseModel):
|
||||
input_description: str
|
||||
correct_spell: str = "" ######################### only in nor verb
|
||||
close_description: List[Description]
|
||||
|
||||
|
||||
class Result(BaseModel):
|
||||
result: Data | str = ""
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
ruuner = AsyncCore(
|
||||
model_name='gpt-oss-20b', # "gemma-3-27b",
|
||||
data_path="/home1/ava3/init_mahdi/project/aiDataParser/task/q_a_simple/input_arabic_data1.json",
|
||||
api_url="http://localhost:8001/v1/", # "http://127.0.0.1:8003/v1/", 172.16.29.102
|
||||
output_path="/home1/ava3/init_mahdi/project/aiDataParser/task/q_a_simple/output_arabic_data_oss20b",
|
||||
task_name="testi-gpt-oss-20b",
|
||||
output_schema=Result,
|
||||
reasoning_effort="medium",
|
||||
ai_code_version="gemma327b_med",
|
||||
request_timeout=60,
|
||||
save_number=50,
|
||||
semaphore_number=500,
|
||||
priority=1,
|
||||
max_token=4096,
|
||||
)
|
||||
ruuner.async_eval()
|
||||
# python3 -m aiDataParser.task.q_a_simple.run
|
||||
Reference in New Issue
Block a user