首页 文章 精选 留言 我的

精选列表

搜索[系统工具],共10000篇文章
优秀的个人博客,低调大师

xturing —— LLM 个性化微调工具

xturing 为 LLM 提供了快速、高效和简单的微调,如 LLaMA、GPT-J、GPT-2、OPT、Cerebras-GPT、Galactica 等。通过提供一个易于使用的界面,再根据你自己的数据和应用来个性化 LLM,xTuring 使构建和控制 LLM 变得简单。整个过程可以在你的电脑内或在你的私有云中完成,确保数据的隐私和安全。 通过 xturing,你可以: 从不同的来源摄取数据,并将其预处理成 LLM 可以理解的格式 从单个 GPU 扩展到多个 GPU,以便更快地进行微调 利用内存效率高的技术(即 LoRA 微调)来减少你的硬件成本,最多可减少 90% 的时间。 探索不同的微调方法,并以它们为基准,找到性能最好的模型 在明确定义的指标上评估微调模型,进行深入分析 CLI UI 安装 pip install xturing 快速开始 from xturing.datasets import InstructionDataset from xturing.models import BaseModel # Load the dataset instruction_dataset = InstructionDataset("./alpaca_data") # Initialize the model model = BaseModel.create("llama_lora") # Finetune the model model.finetune(dataset=instruction_dataset) # Perform inference output = model.generate(texts=["Why LLM models are becoming so important?"]) print("Generated output by the model: {}".format(output))

优秀的个人博客,低调大师

BeetlSQL 3.20.3 发布,流行 Java ORM 工具

修复 @ResultProvider (AutoJsonMapper.class) 注解与自定义 AttributeConvert 注解冲突 @Data @ResultProvider(AutoJsonMapper.class) public static class MyUserView { Integer id; String name; DepartmentEntity dept; @UpdateTime Date createTime } FetchOne和FetchMany允许条件注解,但符合一定条件时候才发生Fetch。这样可以避免Hibernate,JPA那些无效关联操作 @Data @Table(name="sys_order") @Fetch() @EqualsAndHashCode(of="id") public class CustomerOrder3 { @AutoID Integer id; String name; Integer customerId; //如果sql模板执行上下文中包含了"c",参考DynamicFetchEnableOnFunction @FetchOne(value="customerId",enableOn = "c") Customer customer; } SQLResult记录了执行过程中的变量 selectUsers === -- @var a = 1; select * from user where id = #{id}变量a的值可以获取。 SQLResult result = .... Object varA = result.templateContext.getVar("a"); maven <dependency> <groupId>com.ibeetl</groupId> <artifactId>beetlsql</artifactId> <version>3.20.4-RELEASE</version> </dependency> BeetlSQL 自主研发自 2015 年,目标是提供开发高效,维护高效,运行高效的数据访问框架,它适用范围广,定制性强,写起数据库访问代码特别顺滑,不亚于 MyBatis。你不想写 SQL 也好,或者想更好地写 SQL 也好,BeetlSQL 都能满足这要求,目前支持的数据库如下 传统数据库:MySQL (包括支持 MySQL 协议的各种数据库), MariaDB ,Oralce ,Postgres (包括支持 Postgres 协议的各种数据库), DB2 , SQL Server ,H2 , SQLite , Derby ,神通,达梦,华为高斯,人大金仓,PolarDB,GBase8s,GreatSQL 等 大数据:HBase,ClickHouse,Cassandar,Hive,GreenPlum 物联网时序数据库:Machbase,TD-Engine,IotDB SQL 查询引擎:Drill,Presto,Druid 内存数据库:ignite,CouchBase 如下测试使用了最新的Hibernate,MyBatis,包含了常用的 orm 操作: 多表联合查询映射(complexMapping),直接执行 sql (executeJdbc), 执行模板 sql (executeTemplate), 执行文件中的模板 sql ( File), 内置插入(insert),Query 调用链 (Query), 翻页查询 (pageQuery), 内置主键查询 (selectById), one2Many 自动关联查询 Benchmark Mode Cnt Score Error Units JMHMain.beetlsqlComplexMapping thrpt 2 207.914 ops/ms JMHMain.beetlsqlExecuteJdbc thrpt 2 496.413 ops/ms JMHMain.beetlsqlExecuteTemplate thrpt 2 456.779 ops/ms JMHMain.beetlsqlFile thrpt 2 424.703 ops/ms JMHMain.beetlsqlInsert thrpt 2 254.596 ops/ms JMHMain.beetlsqlLambdaQuery thrpt 2 230.682 ops/ms JMHMain.beetlsqlOne2Many thrpt 2 122.058 ops/ms JMHMain.beetlsqlPageQuery thrpt 2 193.937 ops/ms JMHMain.beetlsqlSelectById thrpt 2 421.610 ops/ms JMHMain.jdbcExecuteJdbc thrpt 2 1041.376 ops/ms JMHMain.jdbcInsert thrpt 2 332.804 ops/ms JMHMain.jdbcSelectById thrpt 2 1048.165 ops/ms JMHMain.jpaExecuteJdbc thrpt 2 92.327 ops/ms JMHMain.jpaExecuteTemplate thrpt 2 136.409 ops/ms JMHMain.jpaInsert thrpt 2 61.157 ops/ms JMHMain.jpaOne2Many thrpt 2 98.182 ops/ms JMHMain.jpaPageQuery thrpt 2 124.133 ops/ms JMHMain.jpaSelectById thrpt 2 295.552 ops/ms JMHMain.mybatisComplexMapping thrpt 2 99.312 ops/ms JMHMain.mybatisExecuteTemplate thrpt 2 212.699 ops/ms JMHMain.mybatisFile thrpt 2 166.106 ops/ms JMHMain.mybatisInsert thrpt 2 152.376 ops/ms JMHMain.mybatisLambdaQuery thrpt 2 9.545 ops/ms JMHMain.mybatisPageQuery thrpt 2 68.617 ops/ms JMHMain.mybatisSelectById thrpt 2 251.361 ops/ms JMHMain.weedExecuteJdbc thrpt 2 402.270 ops/ms JMHMain.weedExecuteTemplate thrpt 2 426.764 ops/ms JMHMain.weedFile thrpt 2 440.994 ops/ms JMHMain.weedInsert thrpt 2 232.100 ops/ms JMHMain.weedLambdaQuery thrpt 2 335.052 ops/ms JMHMain.weedPageQuery thrpt 2 216.811 ops/ms JMHMain.weedSelectById thrpt 2 359.930 ops/ms 阅读文档源码和例子在线体验多库使用性能测试

优秀的个人博客,低调大师

BeetlSQL 3.20.0 发布,流行 Java ORM 工具

阳康后继续开源,本次发布建议更新 I6B7AN 修复注解@InheritMapper 解析映射目标为Object的BUG public static interface CommonMapper<T> extends BaseMapper{ @InheritMapper public List<T> implementByChild(T t); } @SqlResource("user") public static interface MyTestUserMapper extends CommonMapper<User>{ //implementByChild 的映射对象是User, 查找文件是user.md中的implementByChild } @SqlResource("admin") public static interface MyTestAdminUserMapper extends CommonMapper<AdminUser>{ //implementByChild 的映射对象是AdminUser,查找文件是admin.md中的implementByChild } I6AWTZ 修复2022年10更新版本导致beetlsql多种数据库库支持的BUG I634BU Spring Boot Starter 打包去掉对commons-dbcp 依赖 I617VE 修复@ResultProvider(AutoJsonMapper.class)注解与自定义AttributeConvert注解冲突 @Data @ResultProvider(AutoJsonMapper.class) // 自动根据结果集映射到Bean public static class MyUserView2 { Integer id; @Coder //自定义注解 String name; DepartmentEntity dept; } I5ZWFOStream 接口 对Lambda的支持 streamData = sqlManager.lambdaQuery(UserEntity.class).andEq(UserEntity::getRole,1).stream(); streamData.foreach(user -> { System.out.println(user.getName()); }); I63SGJ 修复当用户自定义分表逻辑抛异常时候,BeetlSQL提示有误的BUG @Table(name="${toShardTable('user')}") //如果toShardTable逻辑错误,抛出异常能正常显示错误逻辑 public class UserEntity{ } maven <dependency> <groupId>com.ibeetl</groupId> <artifactId>beetlsql</artifactId> <version>3.20.0-RELEASE</version> </dependency> BeetlSQL 自主研发自 2015 年,目标是提供开发高效,维护高效,运行高效的数据访问框架,它适用范围广,定制性强,写起数据库访问代码特别顺滑,不亚于 MyBatis。你不想写 SQL 也好,或者想更好地写 SQL 也好,BeetlSQL 都能满足这要求,目前支持的数据库如下 传统数据库:MySQL (包括支持 MySQL 协议的各种数据库), MariaDB ,Oralce ,Postgres (包括支持 Postgres 协议的各种数据库), DB2 , SQL Server ,H2 , SQLite , Derby ,神通,达梦,华为高斯,人大金仓,PolarDB,GBase8s,GreatSQL 等 大数据:HBase,ClickHouse,Cassandar,Hive,GreenPlum 物联网时序数据库:Machbase,TD-Engine,IotDB SQL 查询引擎:Drill,Presto,Druid 内存数据库:ignite,CouchBase 如下测试包含了常用的 orm 操作: 多表联合查询映射(complexMapping),直接执行 sql (executeJdbc), 执行模板 sql (executeTemplate), 执行文件中的模板 sql ( File), 内置插入(insert),Query 调用链 (Query), 翻页查询 (pageQuery), 内置主键查询 (selectById), one2Many 自动关联查询 Benchmark Mode Cnt Score Error Units JMHMain.beetlsqlComplexMapping thrpt 5 177.412 ± 59.295 ops/ms JMHMain.beetlsqlExecuteJdbc thrpt 5 365.386 ± 131.116 ops/ms JMHMain.beetlsqlExecuteTemplate thrpt 5 313.983 ± 109.348 ops/ms JMHMain.beetlsqlFile thrpt 5 343.331 ± 138.322 ops/ms JMHMain.beetlsqlInsert thrpt 5 196.150 ± 87.106 ops/ms JMHMain.beetlsqlLambdaQuery thrpt 5 219.579 ± 88.081 ops/ms JMHMain.beetlsqlOne2Many thrpt 5 93.343 ± 37.242 ops/ms JMHMain.beetlsqlPageQuery thrpt 5 161.726 ± 76.978 ops/ms JMHMain.beetlsqlSelectById thrpt 5 302.450 ± 95.770 ops/ms JMHMain.jdbcExecuteJdbc thrpt 5 782.097 ± 252.305 ops/ms JMHMain.jdbcInsert thrpt 5 273.364 ± 133.523 ops/ms JMHMain.jdbcSelectById thrpt 5 806.214 ± 261.218 ops/ms JMHMain.jpaExecuteJdbc thrpt 5 107.990 ± 50.917 ops/ms JMHMain.jpaExecuteTemplate thrpt 5 122.694 ± 46.344 ops/ms JMHMain.jpaInsert thrpt 5 71.806 ± 37.828 ops/ms JMHMain.jpaOne2Many thrpt 5 88.506 ± 36.018 ops/ms JMHMain.jpaPageQuery thrpt 5 110.377 ± 35.236 ops/ms JMHMain.jpaSelectById thrpt 5 260.832 ± 68.198 ops/ms JMHMain.mybatisComplexMapping thrpt 5 86.302 ± 48.819 ops/ms JMHMain.mybatisExecuteTemplate thrpt 5 177.863 ± 63.760 ops/ms JMHMain.mybatisFile thrpt 5 143.007 ± 69.036 ops/ms JMHMain.mybatisInsert thrpt 5 122.391 ± 45.541 ops/ms JMHMain.mybatisLambdaQuery thrpt 5 9.109 ± 5.487 ops/ms JMHMain.mybatisPageQuery thrpt 5 58.990 ± 16.252 ops/ms JMHMain.mybatisSelectById thrpt 5 184.545 ± 60.096 ops/ms JMHMain.weedExecuteJdbc thrpt 5 311.293 ± 161.801 ops/ms JMHMain.weedExecuteTemplate thrpt 5 328.432 ± 106.103 ops/ms JMHMain.weedFile thrpt 5 338.572 ± 168.666 ops/ms JMHMain.weedInsert thrpt 5 183.079 ± 101.693 ops/ms JMHMain.weedLambdaQuery thrpt 5 293.843 ± 155.029 ops/ms JMHMain.weedPageQuery thrpt 5 176.761 ± 88.406 ops/ms JMHMain.weedSelectById thrpt 5 295.524 ± 147.727 ops/ms 阅读文档源码和例子在线体验多库使用性能测试

优秀的个人博客,低调大师

isort 5.11.0 发布,Python import 分段工具

isort 是一个 Python 实用程序 / 库,用于按字母顺序对导入进行排序,并自动分成不同的部分和类型。它为各种编辑器提供命令行实用程序、Python 库和插件,以快速对所有导入进行排序。它需要 Python 3.6+ 才能运行,但也支持格式化 Python 2 代码。 isort 5.11.0 正式发布,更新内容如下: 添加对 Python 3.11 支持的支持 (#2024) 删除对 Python 3.6 的支持 (#2020) 添加 GH 发布助手 (#2023) 修复集成测试(#2022) 修复单元测试 (#2021) 修复 Rich 兼容性 (#1961) 修复 Pyodide CDN URL (#1991) 添加尾随逗号选项(#1876) 在不可恢复的异常消息中添加缺失的空间 (#1933) skip-gitignore:使用允许列表,而不是拒绝列表(#1900) 不匹配括号的无限循环(#1919) 记录共享配置文件 (#1896) 修复示例插件中的构建后端值 (#1892) 删除对 j​​amescurtin/isort-action 的引用(#1885) 拆分长 cython 导入线(#1931) 添加命令行标志,以对所有重新导出进行排序 (#1862) (#1863) 添加 tox 配置示例 (#1856) 文档:添加 frozenset 和元组设置的示例 (#1822) 添加多个配置文档 (#1850) 更新公告:https://github.com/PyCQA/isort/releases/tag/5.11.0

资源下载

更多资源
Mario

Mario

马里奥是站在游戏界顶峰的超人气多面角色。马里奥靠吃蘑菇成长,特征是大鼻子、头戴帽子、身穿背带裤,还留着胡子。与他的双胞胎兄弟路易基一起,长年担任任天堂的招牌角色。

Spring

Spring

Spring框架(Spring Framework)是由Rod Johnson于2002年提出的开源Java企业级应用框架,旨在通过使用JavaBean替代传统EJB实现方式降低企业级编程开发的复杂性。该框架基于简单性、可测试性和松耦合性设计理念,提供核心容器、应用上下文、数据访问集成等模块,支持整合Hibernate、Struts等第三方框架,其适用范围不仅限于服务器端开发,绝大多数Java应用均可从中受益。

Sublime Text

Sublime Text

Sublime Text具有漂亮的用户界面和强大的功能,例如代码缩略图,Python的插件,代码段等。还可自定义键绑定,菜单和工具栏。Sublime Text 的主要功能包括:拼写检查,书签,完整的 Python API , Goto 功能,即时项目切换,多选择,多窗口等等。Sublime Text 是一个跨平台的编辑器,同时支持Windows、Linux、Mac OS X等操作系统。

WebStorm

WebStorm

WebStorm 是jetbrains公司旗下一款JavaScript 开发工具。目前已经被广大中国JS开发者誉为“Web前端开发神器”、“最强大的HTML5编辑器”、“最智能的JavaScript IDE”等。与IntelliJ IDEA同源,继承了IntelliJ IDEA强大的JS部分的功能。

用户登录
用户注册