本文分类:news发布日期:2025/2/24 17:10:40
相关文章
Git:版本控制的艺术与实践
引言: 在软件开发领域,版本控制是至关重要的一环。它帮助我们跟踪代码的变化、管理团队协作、回溯历史记录以及解决冲突等。而Git作为目前最流行的分布式版本控制系统,已经成为了开发者们的必备工具。本文将深入探讨Git的核心概念、常用命令以…
建站知识
2025/2/24 17:09:50
LLaMA-Factory微调ChatGLM3报错: Segmentation fault (core dumped)
SFT训练模型的命令
CUDA_VISIBLE_DEVICES0 python src/train_bash.py \--stage sft \--model_name_or_path models/chatglm3-6b \--do_train \--dataset self_cognition \--template chatglm3 \--finetuning_type lora \--lora_target query_key_value \--output_dir output/c…
建站知识
2025/2/15 11:32:41
09、pytest多种调用方式
官方用例
# content of myivoke.py
import sys
import pytestclass MyPlugin:def pytest_sessionfinish(self):print("*** test run reporting finishing")if __name__ "__main__":sys.exit(pytest.main(["-qq"],plugins[MyPlugin()]))# conte…
建站知识
2025/2/17 7:20:25
SpringBoot项目访问resources下的静态资源
1.新建一个配置文件夹,放配置类 2.编辑
WebMvcConfig.java
package com.southwind.configuration;import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import or…
建站知识
2025/2/9 21:52:16
Verilog中generate的用法
(一)generate语法 generate 在设计中,很多情况下需要编写很多结构相同但是参数不同的赋值语句或者逻辑语句,如果在参数量很大的的情况下,原本的列举就会显得心有余而力不足。c语言中常用for语句来解决此类问题…
建站知识
2025/2/23 15:03:13
redis-学习笔记(list)
因为 list 可以头插头删, 尾插尾删, 所以其实更像 C 中的 deque (双端队列) ---- 知道就好, 别乱说, 具体底层编码是啥, 俺也不知道(没注意过) 可以通过组合, 把 list 当作队列 / 栈来用 list 的几种底层编码: ziplist(压缩列表) , linkedlist(链表) , quicklist ziplist 就是将…
建站知识
2025/1/17 2:00:27
【Linux下基本指令 —— 2】
Linux下基本指令 —— 2 十.more 指令语法:功能:常用选项:举例:Xshell7展示十一.less 指令语法:功能:选项:Xshell7展示 十二.head 指令语法:功能:选项:Xshell…
建站知识
2025/2/20 21:26:18
Linux下通过find找文件---通过修改时间查找(-mtime)
通过man手册查找和-mtime选项相关的内容
man find | grep -A 3 mtime
# 这里简单介绍了 -mtime ,还有一个简单的示例-mtime n
Files data was last modified n*24 hours ago. See the comments for -atime to understand how rounding affects the interpretati…
建站知识
2025/2/7 18:10:39