kernel memory

2024-01-13 Can't perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. ==》引用了未使用的方法导致

react+antd业务代码报错: Can't perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. T ......

[linux kernel] struct pid && the way the kernel used to cast uint32_t pid to struct task_struct

摘抄内容引用自linux kernel document description pre the initialization and the manage of the struct pid is use IDR.(implement by hash table->(why not array?- ......
struct kernel task_struct amp pid

Understanding the linux kernel Chapter2 Memory Addressing

Physical Memory Layout unavailable address for kernel either because they map hardware devices’ I/O shared memory or because the corresponding page fr ......

安装pytorch/安装jupyterlab并添加已创建环境的kernel

安装pytorch 先创建一个环境,去pytorch官网查找环境所用python版本对应的torch版本,并选择合适的下载命令,在已激活的环境中运行命令,即可安装成功。 安装jupyter jupyter可以按cell运行代码,并且可以边写代码边做笔记。运行conda install jupyter ......
jupyterlab pytorch 环境 kernel

ubuntu 18.04.6 编译内核kernel提示 Can't find default configuration "arch/x86/configs/socfpga_deconfig"!

输入make socfpga_defconfig 的时候提示: ubuntu 18.04.6 编译内核kernel提示 Can't find default configuration "arch/x86/configs/socfpga_deconfig"! 解决办法: export ARCH=ar ......

Kernel Memory 中使用 PaddleSharp OCR

Kernel Memory 中使用 PaddleSharp OCR Kernel Memory 中进行文档处理的时候可以上传图片作为文档,这时候就需要使用到 OCR 技术来识别图片中的文字。 官方默认的库中,提供了 Azure Document Intelligence 的扩展服务,可以通过 Azu ......
PaddleSharp Kernel Memory OCR

掌握语义内核(Semantic Kernel):如何精进你的提示词工程

在人工智能的海洋里,大型语言模型(LLM AI)是高速发展的一艘巨轮,而有效地与其沟通和指导其行为的锚,正是提示语(prompts)。提示语是我们提供给模型的输入或查询,以期获取特定的响应。当今,提示语工程(prompt engineering)已成为涌现的领域,它需要创造力和对细节的关注。接下来, ......
语义 内核 Semantic Kernel 工程

oi memory

CF1817C Similar Polynomials 直接带入 \[\begin{aligned} \sum_{i=0}^{d}b_ix^i&=\sum_{i=0}^{d}a_i(x+s)^{i}\\ &=\sum_{i=0}^{d}x_i\sum_{j=i}^{d}\binom{j}{i}a_j ......
memory oi

Kernel su

管中窥豹 重要的kprobe和队列 $ grep -rn INIT_WORK ./ ./uid_observer.c:137: INIT_WORK(&ksu_update_uid_work, do_update_uid); ./ksud.c:563: INIT_WORK(&stop_vfs_read ......
Kernel su

Kernel Memory 入门系列:异步管道

Kernel Memory 入门系列:异步管道 前面所介绍的处理流程都是基于同步管道的,即文档导入的时候,会等到文档处理完成之后才会返回。 但是在实际的应用中,文档很多,而且文档的处理时间也不确定,如果采用同步的方式,那么就会导致整个流程的处理时间过长,也会导致整个流程的阻塞。因此,我们需要一种异步 ......
管道 Kernel Memory

Semantic Kernel入门学习文章合集

GitHub 卢老师的Cookbook https://github.com/kinfey/SemanticKernelCookBook?tab=readme-ov-file SK部落 https://mp.weixin.qq.com/s?__biz=MzI5MTg4NzIyNg==&mid=224 ......
Semantic Kernel 文章

Kernel Memory 入门系列:Semantic Kernel 插件

Kernel Memory 入门系列:Semantic Kernel 插件 Kernel Memory 本身提供了完整的RAG能力,这部分能力如果通过Semantic Kernel Memory的话,也是可以实现的,但是整体的管理成本会比较高。 因此通过Kernel Memory 构建知识库管理,然 ......
Kernel 插件 Semantic Memory

BUG分享|报错:Cannot access Memory (@ 0xe00fffe4, Read, Acc Size: 4 Byte);移植FreeRTOS后无法烧录;DAPLink无法烧录;低功耗无法烧录;

引言 在移植FreeRTOS到STM32F411CEU6上时,出现了烧录一次后,无法再次烧录的情况。 现象 烧录时报错: Cannot access Memory (@ 0xe00fffe4, Read, Acc Size: 4 Byte); 弹窗:Connection refused due to ......
功耗 FreeRTOS DAPLink Cannot access

一文真正掌握内存屏障memory_barrier及其用途

在linux源码中经常遇到__asm__函数。它其实是函数asm的宏定义 #define __asm__ asm,asm函数让系统执行汇编语句。 __asm__常常与__volatile__一起出现。__volatile__限制编译器不能对下面的汇编语句进行优化处理。 现代cpu通常具有多级缓存,寄 ......
屏障 memory_barrier 用途 内存 barrier

lk uboot传参到Kernel

记录一下内核和uboot的传参 MTK传参 1. 在 app/mt_boot/mt_boot.c使用cmdline_append(buf); snprintf(buf, 10,"vcom=%s", vcom_str); pal_log_err("%s\n", buf); cmdline_append ......
Kernel uboot lk

Kernel Memory 入门系列:自定义处理流程

Kernel Memory 入门系列:自定义处理流程 在整个文档预处理的流程中,涉及到很多的处理步骤,例如:文本提取,文本分片,向量化和存储。这些步骤是Kernel Memory中的默认提供的处理方法,如果有一些其他的需求,也可以进行过程的自定义。 自定义Handler 在Kernel Memory ......
流程 Kernel Memory

Kernel Memory 入门系列:文档的管理

Kernel Memory 入门系列: 文档的管理 在Quick Start中我们了解到如何快速直接地上传文档。当时实际中,往往会面临更多的问题,例如文档如何更新,如何划定查询范围等等。这里我们将详细介绍在Kernel Memory文档的管理。 使用Document管理一组文件 当我们需要批量上传一 ......
文档 Kernel Memory

Kernel Memory 入门系列:生成并获取文档摘要

Kernel Memory 入门系列:生成并获取文档摘要 前面在RAG和文档预处理的流程中,我们得到一个解决方案,可以让用户直接获取最终的问题答案。 但是实际的业务场景中,仍然存在一些基础的场景,不需要我们获取文档的所有详情的,而只是了解的文档的大概信息,得到文章整体的摘要或者总结,此时仍然可以使用 ......
摘要 文档 Kernel Memory

幽灵和熔断+LR/SC的实现和使用+Consistent和Coherent+memory 属性 Device-nGnRnE+IP-XACT+vcs token is "until"+vcs编译解决 module名重复的冲突问题+Webhook

幽灵和熔断 幽灵和熔断是基于瞬态指令流的缓存侧信道攻击。在瞬态指令流中被执行的内存加载指令如果将一个数据带入了缓存,则即使流水线回滚期间处理器丢弃了该指令返回的访存结果,已经被修改的缓存状态却无法撤销。由此,攻击者可以通过监测缓存的变化来推断受害者程序的访存地址,如果该地址本身包含敏感信息,就会引发 ......
quot Device-nGnRnE 幽灵 Consistent vcs

Semantic Kernel 正式发布 v1.0.1 版本

微软在2023年12月19日在博客上(Say hello to Semantic Kernel V1.0.1)发布了Semantic kernel的.NET 正式1.0.1版本。新版本提供了新的文档,以解释 SDK 创建 AI 代理的能力,这些代理可以与用户交互、回答问题、调用现有代码、自动化流程和 ......
Semantic 版本 Kernel 0.1 v1

docker 启动报错 library initialization failed - unable to allocate file descriptor table - out of memory

docker 启动报错 library initialization failed - unable to allocate file descriptor table - out of memory 1.报错日志 library initialization failed - unable to ......

Kernel Memory 入门系列:Kernel Memory Service

Kernel Memory 入门系列:Kernel Memory Service 在 Kernel Memory 的 GitHub 仓库中有一个单独的项目 Service , 用于提供独立的Kernel Memory OpenAPI 服务。可以用于独立的部署后台,也可以为其他语言提供接口调用服务。 ......
Kernel Memory Service

Kernel Memory 入门系列:快速开始

Kernel Memory 入门:Quick Start 了解了用户问答和文档预处理的流程之后,我们就可以直接开始使用Kernel Memory了。 1. 安装 项目中只需要通过NuGet安装Microsoft.KernelMemory.Core包即可。 dotnet add package Mic ......
Kernel Memory

Kernel Memory 入门系列:文档预处理

Kernel Memory 入门系列:文档预处理 Embedding为我们提供了问题理解和文档检索的方法,但是面对大量的文档,如果在用于提问的时候再进行文档的Embedding的话,那这个过程是非常耗时的,再加之我们的文档并不会频繁变化,所以我们可以对文档进行预处理,提升检索的效率。 文档的预处理大 ......
文档 Kernel Memory

Go - error: panic: runtime error: invalid memory address or nil pointer dereference

Then looking at this code: res, err := client.Do(req) defer res.Body.Close() if err != nil { return nil, err } I'm guessing that err is not nil. You'r ......
error dereference address invalid runtime

Kernel Memory 入门系列: Embedding 简介

Kernel Memory 入门系列: Embedding 简介 在 RAG模式 其实留了一个问题。 我们对于的用户问题的理解和文档的检索并没有提供合适的方法。 当然我们可以通过相对比较传统的方法。 例如对用户的问题进行关键词提取,然后通过关键词检索文档。这样的话,就需要我们提前对文档做好相关关键词 ......
Embedding 简介 Kernel Memory

Kernel Memory 入门系列: RAG 简介

Kernel Memory 入门系列: RAG 简介 开一个新坑,Semantic Kernel系列会在 Release 1.0 之后陆续更新。 当我们有了一定的产品资料或者知识内容之后,自然想着提供一个更加方便的方式让用户能够快速地找到自己想要的信息,或者得到一个更加智能的答案。 以往的时候可能需 ......
简介 Kernel Memory RAG

一句话解决加载模型时的CUDA out of memory

在加载模型一行后加上max_memory即可,超出显存后会自动移到内存。 model = AutoModel.from_pretrained('your_model', trust_remote_code=True, max_memory={0: "6GiB", "cpu": "10GiB"}) 记 ......
模型 一句话 memory CUDA out

Cyclone V SOC FPGA 如何将preloader uboot kernel rootfile rbf dtb uboot.scr 等文件打包成一个SD卡 .img文件 方便windows的windisk32 一键烧写呢?

首先 我按照 (https://rocketboards.org/foswiki/Documentation/EmbeddedLinuxBeginnerSGuide)制作了一个image, 将SD卡进行分区fat32, raw 和ext3,然后将preloader uboot kernel root ......
文件 uboot preloader rootfile Cyclone

extract_triton_kernels.py

import sys filename = sys.argv[1] with open(filename, 'r') as f: lines = f.readlines() def extract_info(line): line = line.split() name = line[0].stri ......
共320篇  :1/11页 首页上一页1下一页尾页