PS: Siehe https://github.com/unit-mesh/unit-eval für Feinstation im Zusammenhang mit dem Abschluss der Code und der Erzeugung von Dokumenten:
Erklärung: Die Datensätze und die von diesem Projekt bereitgestellte Lora -Binary werden von OpenAI erstellt oder online veröffentlicht. Wir bieten nur Tutorials im Zusammenhang mit Modelltraining, und alle Konsequenzen, die durch den tatsächlichen Trainingsinhalt des Benutzers verursacht werden, liegt in der Verantwortung des Benutzers selbst.
Für Ingenieure können wir deutlich die Auswirkungen von Großsprachenmodellen wie ChatGPT erkennen und daher Forschungsarbeiten zur Verbesserung der F & E -Effizienz von KI durchgeführt - mehrere Methoden zur Untersuchung der F & E -Effizienz von LAMA LORA und CHATGLM LORA geschult.
Dieses Projekt ist unser Forschungsergebnis, einschließlich einiger Videoeinführungen, geschulter Modelle, Schulungscode, Trainingsdaten und einigen Aufzeichnungen während des Trainingsprozesses.
Siehe Veröffentlichung für das Training Lora.
Schulungsnotizbuch:
LAMA -Serie Online -Video:
Online -Video der Chatglm -Serie:
Inhaltsverzeichnis:
Verwandte Datenkonvertierung finden Sie unter: https://github.com/unit-mesh/minions-data-prepare
PS: Wenn Sie eine bessere Codegenerierung benötigen, wird empfohlen, zu verwenden: https://huggingface.co/salesforce/codegen-16b-mono
Wir verwenden die von OpenBayes bereitgestellte Cloud -GPU: https://openbayes.com/console/signup?r=phodal_uvxu
Das OpenBayes -Modell kann verwendet werden:
Roadmap:
Danke: AIOS Club für Openai Key, danke OpenBayes für Cloud GPU
Die Verbesserung der Wahrnehmungseffizienz der KI hängt von der Standardisierung der F & E -Effizienz und der Aufteilung jedes Schritts so sorgfältig wie möglich ab.
Um die Trainingsergebnisse genauer zu gestalten, teilen wir die Schritte der Softwareentwicklung im Detail auf, um sicherzustellen, dass jeder Schritt genaue Ergebnisse liefert und damit genaue Ergebnisse erzielt. Hier ist ein Beispiel für einen kleinen Teil des detaillierten Prozesss, den wir in unserer frühen Trennung hatten:
Wir müssen es so klein wie möglich in jeden Schritt aufteilen und Daten in jedem raffinierten Schritt füttern, damit die KI den größten Repeater -Effekt erzeugt.
Todos
Wir verwenden sehr einfache Anweisungen und bieten ihnen so viel wie möglich, um eine einfache Integration in das Tool zu integrieren. wie folgt:
Entsprechende Funktionen Einführung:
Nach den Testergebnissen zu beurteilen, dass die Datenmenge beispielsweise 20.000 Code -Anwendungsfälle erhöht, sind sie "intelligenter" als 10.000 Code -Anwendungsfälle.
Grundlegende Ideen:
Wie unten gezeigt:

Design a User Story Mapping for ${domain} application based on your understanding. Here are the requirements:
1 . Your user story map should include only user tasks to demonstrate how users will interact with the application.
2 . Our user story map should be based on your understanding of the ${domain} application and its users, and should be
designed to address their needs and pain points.
3 . You may use any tools or formats you choose to create your user story map, but it should be easily shareable and
understandable by stakeholders.
4 . Your expression should be more concise and clear.
5 . Your return should be like as follows:
###
User Tasks:
1 . ...
###Beispielausgabe:
User Tasks:
1. Browse and search for animations and comics
2. View details of animations and comics
3. Create an account
4. Log in to the account
5. Add animations and comics to favorites
6. Download animations and comics
7. Share animations and comics with friends
8. Rate and review animations and comics
9. Create and upload animations and comics
10. Participate in online forums and discussions
为下面的需求编写用户故事:${domain} 应用的 ${story_name} 功能。 要求如下:
1 . 必须要考虑尽可能考虑各种异常场景,添加更多的 AC。
2 . 你的返回模板如下所示:
###
用户故事:可以选择宝贝出行服务
作为 莉莉妈
我想 在滴滴打车的手机客户端里选择宝贝出行服务
以便于 我能够带宝宝打车出行的时候打到有儿童座椅的车
AC 1: 莉莉妈可以选择宝贝出行服务
假设 xxx
当 xxx
于是 xxx
###Beispielausgabe:
用户故事:可以创建和上传动画和漫画
作为一个 Animation and Comics 应用的用户
我想要创建和上传动画和漫画
以便于我可以分享我的作品给其他用户
AC 1: 用户可以创建和上传动画和漫画
假设 用户已经登录到 Animation and Comics 应用
当 用户点击创建和上传动画和漫画按钮
于是 用户可以创建和上传动画和漫画
Grundlegende Ideen:

src/main . PostService(PostRepository, UserRepository, ImageService)
- fields: postRepository:PostRepository, userRepository:UserRepository, userPosts:Set<Post>, imageService:ImageService
- methods: findAll(): List<Post>, addNewPost(Post): Post, saveImageToPost(String, MultipartFile, Post): int
Erwartete JSON -Format:
Beispiel:
{"instruction":"Implement the method action","input":"com.thoughtworks.go.config.rules.AbstractDirective(DirectiveType, DirectiveType, String, String, String)n- fields: action:String, type:String, resource:String, configErrors:ConfigErrors, directiveType:DirectiveTypen- methods: validate(ValidationContext): void, isInvalid(String, List<String>): boolean, matchesAction(String): boolean, matchesType(Class<? extends Validatable>): boolean, matchesResource(String): boolean, errors(): ConfigErrors, addError(String, String): void, equals(Object): boolean, action(): String, type(): String, resource(): String, hashCode(): int, hasErrors(): boolean, getDirectiveType(): DirectiveType","output":"public abstract class AbstractDirective implements Directive {nn @ConfigAttribute(value = "action", optional = false)n protected String action;nn @ConfigAttribute(value = "type", optional = false)n protected String type;nn @ConfigValuen private String resource;nn private final ConfigErrors configErrors = new ConfigErrors();nn private DirectiveType directiveType;nn public AbstractDirective(DirectiveType allow) {n this.directiveType = allow;n }nn public AbstractDirective(DirectiveType allow, String action, String type, String resource) {n this.directiveType = allow;n this.action = action;n this.type = type;n this.resource = resource;n }nn @Overriden public String action() {n return this.action;n }n}n"}
Formatspezifikation:
包名.类名(类的构造类型)
- fields:成员变量集合(变量名:类型)
- methods:方法抽象集合(方法名(参数类型): 输出类型)
Ergebnis:
com.thoughtworks.go.config.rules.AbstractDirective(DirectiveType, DirectiveType, String, String, String)
- fields: action:String, type:String, resource:String, configErrors:ConfigErrors, directiveType:DirectiveType
- methods: validate(ValidationContext): void, isInvalid(String, List<String>): boolean, matchesAction(String): boolean, matchesType(Class<? extends Validatable>): boolean, matchesResource(String): boolean, errors(): ConfigErrors, addError(String, String): void, equals(Object): boolean, action(): String, type(): String, resource(): String, hashCode(): int, hasErrors(): boolean, getDirectiveType(): DirectiveType
val javaProcessor = JavaProcessor (file.readText())
val shotClass = javaProcessor.toShortClass() ? : return @forEach
javaProcessor
.removePackage()
.removeAllImport()
.removeLicenseInfoBeforeImport()
javaProcessor.splitMethods().forEach { (key, value) ->
CodegenPrompt (
instruction = " Implement the method $key " ,
input = shotClass.toString(),
output = value
). let { prompt ->
val output = Json .encodeToString(prompt)
File ( " $targetPath${key} .json " ).writeText(output)
}
}Grundlegende Ideen

Ideen für grammatikalische Analyse:
src/main . Wenn die entsprechende Testdatei gleichzeitig vorhanden ist, wird sie in den Datensatz gezogen. org.unitmesh.processor.TestClass(String, Int)
- fields: field1:String, field2:Int
- methods: method1(String, Int): String, method2(): Int
class TestProcessorTest {
@ Test
void test1 () {
}
@ Test
void test2 () {
}
}Schließlich sind die generierten Daten wie folgt:
{"classInfo": "com.thoughtworks.go.security.AESEncrypter(AESCipherProvider)n- fields: ENCODER:Base64.Encoder, DECODER: Base64.Decoder, cipherProvider:AESCipherProvider, ivProvider:IVProvidern- methods: createIVProviderInstance(): IVProvider, CandeCrypt (String): Boolean, Encrypt (String): String, Decrypt (String): String, erstelltsecretkeSpec (): SecretKeySpec "," testMethod ":" öffentliche Klasse aesenScrypttertest { n n private aeSencryptter; CryptoException { n String encrypt = aeSencryptter.encrypt ("p@ssw0rd");
Für einen detaillierten Code siehe: Test-to-Code.py
Das zuletzt generierte EPPT -Beispiel lautet wie folgt:
You are a programmer and implementation a method with TDD. Here are the requirements:
1 . According follows class information and tests code to write a method.
2 . Try you best to thinking corner case.
3 . You only return the code, no explain.
class information:
###
io.github.robwin.swagger.test.AbstractContractValidator()
- methods: findExpectedPaths(Swagger, SwaggerAssertionConfig): Map<String,Path>, getPathsIncludingBasePath(Swagger):
Map<String,Path>, getPathsWithPrefix(Swagger, String): Map<String,Path>, isBlankOrSlash(String): boolean
###
test code:
###
/ **
* Tests AbstractContractValidator.
* /
@ RunWith (Enclosed.class)
public class AbstractContractValidatorTest {
/ **
* Tests getPathsIncludingBasePath().
* /
public static class GetPathsIncludingBasePath {
@ Test
public void shouldReturnPathsPrefixedIfBasePathSet() {
// given
Swagger swagger = buildSwaggerFrom("/swagger.json");
// when
Map<String, Path> paths = new DummyValidator().getPathsIncludingBasePath(swagger);
// then
paths.entrySet().forEach(e -> assertThat(e.getKey(), startsWith(swagger.getBasePath())));
}
}
/ **
* Tests findExpectedPaths().
* /
public static class FindExpectedPaths {
}
private static class DummyValidator extends AbstractContractValidator {
}
}
###
Verwenden Sie vorhandene Datensätze, einschließlich:
Diese beiden Code -Sets sind jedoch nicht von hoher Qualität, sondern im Grunde genommen verfügbar.
Das Format lautet wie folgt:
instruction:
我想查找特定月份(monthly_id)下在某个日期(date)之前的所有费用(expense),以方便了解特定月份内的开销情况。
input:
data class ExpenseEntity(....)
output:
@Query("SELECT * FROM expense WHERE monthly_id = :recurringExpenseId AND date < :beforeDate")
suspend fun getAllExpensesForRecurringExpenseBeforeDate(recurringExpenseId: Long, beforeDate: LocalDate): List<ExpenseEntity>
evaluate("text to kotlin repository with class", "我想查询指定年龄的用户(User)的博客数量。n ###data class User(var age: Int,
val blogId: Int) data class Post(val title: String)###", 0.1, 0.75, 40, 4, 512)
@Query("SELECT COUNT(*) FROM User WHERE age = :age")
abstract fun getBlogCount(age: Int): Long
Grundlegende Ideen:
instruction in zwei Teile, und input output null.Beispiel:
instruction: 介绍一下财通财通宝的基金管理人、基金托管人在履行各自职责的过程中,违反《基金法》?
(一)基金管理人、基金托管人在履行各自职责的过程中,违反《基金法》等法律法规的规定或者基金合同约定, 给基金财产或者基金份额持有人造成损害的,
应当分别对各自的行为依法承担赔偿责任;因共同行为给基金财产或者基金份额持有人造成损害的,应当承担连带赔偿责任,对 损失的赔偿,仅限于直接损失。
但是发生下列情况,当事人可以免责: 1.基金管理人及基金托管人按照中国证监会的规定或当时有效的法律法规的作为或不作为而造成的损失等;
2.基金管理人由于按照基金合同规定的投资原则而行使或不行使其投资权而造成的损失等; 3.不可抗力。
Zug:
Trainingszeit:
Verwandter Hintergrund:
Da unser Ziel nicht darin besteht, das Modell einzustellen und ein allgemeines Modell zu generieren, sondern Lora für einen bestimmten Zweck zu trainieren. Daher haben wir den Daten nicht in Stanford Alpaka beigetreten, daher ist die erforderliche Zeit kürzer. Beispielsweise dauert der Testcode von 8000+ nur 1 Stunde und die 3400 -Benutzer -Geschichten dauern nur 25 Minuten.
Trainingsergebnisse (LORA) sind verfügbar unter: https://github.com/unit-mesh/unit-minions/releases/tag/v0.0.1
print(evaluate("write test", """
public Set<String> listFilesUsingJavaIO(String dir) {
return Stream.of(new File(dir).listFiles())
.filter(file -> !file.isDirectory())
.map(File::getName)
.collect(Collectors.toSet());
}
""", 0.1, 0.75, 40, 4, 512))
## Output:
public class ListFilesUsingJavaIOTest {
@Test
public void shouldListFilesUsingJavaIO() {
Set<String> files = ListFilesUsingJavaIO.listFilesUsingJavaIO(new File("dir"));
assertThat(files, containsInAnyOrder("file1", "file2", "file3"));
}
}
Trainingsergebnisse (LORA) sind verfügbar unter: https://github.com/unit-mesh/unit-minions/releases/V0.0.2
Beachten:
--val_set_size 500--val_set_size 500--val_set_size 500Beispielausgabe :
print(evaluate("create Agile user story for following topic: ", "购买电影票", 0.1, 0.75, 40, 4, 512))
用户故事:可以购买电影票
作为一个电影票购买者
我想在购买电影票应用中购买电影票
以便于我可以购买电影票
AC 1: 电影票购买者可以在购买电影票应用中购买电影票
假设 电影票购买者已经登录购买电影票应用
当 电影票购买者点击“购买电影票”按钮
于是 电影票购买者可以在购买电影票应用中购买电影票
AC 2: 电影票购买者可以在购买电影票应用中查看购买记录
假设 电影票购买者已经登录购买电影票应用
当 电影票购买者点击“查看购买记录”按钮
于是 电影票购买者可以在购买电影票应用中查看购买记录
AC 3: 电影票购买者可以在购买电影票应用中查看购买记录
假设 电影票购买者已经登录购买电影票应用
当 电影票购买者点击“查看购买记录”按��
Trainingsergebnisse (LORA) sind verfügbar unter: https://github.com/unit-mesh/unit-minions/releases/V0.0.3
Beispielausgabe :
print(evaluate("Implement the method rmFiles", "FileUtils:", 0.1, 0.75, 40, 4, 512))
public class FileUtils {
private FileUtils() {
}
public static void rmFiles(String path) {
File dir = new File(path);
File[] files = dir.listFiles();
if (files != null) {
for (File file : files) {
if (file.isFile()) {
file.delete();
} else if (file.isDirectory()) {
FileUtils.rmFiles(file.getAbsolutePath());
}
}
}
}
}
Konvertierungsskript: Code/Text-to-SQL.Py
Direkt von: Datasets/sql/sql-train.jsonl
Beispielausgabe :
evaluate("text to sql", "谁是最美丽的人", 0.1, 0.75, 40, 4, 512)
evaluate("text to sql", "小明今年几岁", 0.1, 0.75, 40, 4, 512)
evaluate("text to sql", "What hand guard system is used with a gas piston commando?", 0.1, 0.75, 40, 4, 512)
Zug:
Beispiel 1:
evaluate("Instruction: 创建用户故事nInput: 电影网站: 查看订单详情 nAnswer:")
Instruction: 创建用户故事
Input: 电影网站: 查看订单详情
Answer:
用户故事:可以查看订单详情
作为一个电影网站的用户
我想查看订单详情
以便于我可以了解订单的详细信息,如订单号、订单状态、订单内容等。
AC 1: 用户可以查看订单详情
假设 用户已经登录
当 用户点击查看订单详情按钮
于是 用户可以查看订单详情,包括订单号、订单状态、订单内容等。
AC 2: 用户可以查看订单详情
假设 用户没有登录
当 用户点击查看订单详情按钮
于是 用户被要求先登录,然后才能查看订单详情,包括订单号、订单状态、订单内容等。
Beispiel 2:
evaluate("Instruction: 创建用户故事nInput: 团购网站:用户注册nAnswer:")
Instruction: 创建用户故事
Input: 团购网站:用户注册
Answer:
团购网站的用户注册故事:
作为一个团购网站的用户
我想注册一个团购网站的用户账号
以便于我可以使用团购服务,如购买商品、服务等。
AC 1: 团购网站的用户注册账号
假设 用户输入了注册信息
当 用户提交注册信息
于是 用户可以成功注册一个团购网站的用户账号
AC 2: 团购网站的用户注册账号
假设 用户输入了错误的注册信息
当 用户提交注册信息
于是 用户可以被提示输入正确的注册信息,并重新提交注册信息