All systems operationalAI Agent Automation Platform
English
Language简体中文EnglishSelected

Choose your language

scoreing_model

BAAI_Industry_Competition_tourism_dev/scoreing_model

PublisherBAAI_Industry_Competition_tourism_dev

Download access requirementsModelScope source

训练是在LLaMA-Factory框架下进行的Lora SFT微调。训练指令如下: llamafactory-cli train examples/train lora/qwen2.5 lora sft.yaml from openai import OpenAI

Text Chat
Model details

模型介绍

中文整理

训练和推理代码

训练代码

训练是在LLaMA-Factory框架下进行的Lora SFT微调。训练指令如下:

llamafactory-cli train examples/train lora/qwen2.5 lora sft.yaml

训练超参数如下:

推理代码

import json

from openai import OpenAI

import os

openai api key = "EMPTY"

openai api base = "http://localhost:8003/v1"

client = OpenAI(

api key=openai api key,

base url=openai api base,

)

评分模型接口配置

scoring api key = "EMPTY"

scoring api base = "http://localhost:8004/v1"

scoring client = OpenAI(

api key=scoring api key,

base url=scoring api base,

)

def score response(response):

"""

使用评分模型对回答进行评分。

"""

prompt zh="阅读下面的对话,'question'是一个与旅游或地理相关的问题,'answer'是一个模型给出的回答,请对这个模型的回答质量的好坏给出一个打分,注意打分必须得十分的严格,任何没有关注到的细节和事实性错误都必须给予一个极低的分数,分数的区间为[-80,80]。"

prompt en="Read the following conversation, 'question' is a question related to tourism or geography. 'answer' is the answer given by a model. Please give a score for the quality of the model's answer. Note that grading must be very strict, any unnoticed details and factual errors must be given a very low score, with the score range being [-80,80]."

if '\u4e00'

优先采用原作者提供的中文模型卡片;仅有英文说明时由闲社AI翻译整理。重要参数、许可证和商用范围请以原文为准。

你将获得什么

完整仓库方式包含该固定版本中的权重、配置、分词器及说明文件;指定版本方式只下载所选文件或整组分片。多模态模型的投影文件、配置等依赖,请按作者说明配齐。

完整仓库可能包含多个权重格式,因此需要的磁盘空间可能大于单一格式的模型大小。下载文件不等于完成模型部署。

使用前须知

运行环境

运行模型需要的设备、工具与依赖,以原作者说明为准。

授权范围

是否允许商用、修改和分发,请查看模型许可证。

闲社提供资料与镜像下载方法,不代表已运行模型或完成安全审计。下载的代码应先检查,再执行。

Back to top