←搜索结果

按匹配度 · 共 1622 条结果 清除搜索

星期二

  1. Ollama Blog

    在本地运行 Llama 2 无审查模型 · Ollama Blog

    Ollama 发布博客介绍如何在本地运行 Llama 2 无审查模型,并对比其与有审查版本的输出差异。可用模型包括微调后的 Llama 2 7B(ollama run llama2-uncensored)、基于 30 万条指令微调的 Nous Hermes Llama 2 13B(ollama run nous-hermes-llama2),以及移除对齐的 Wizard Vicuna 13B(ollama run wizard-vicuna)。

    mechanisms; Try it: ollama run nous-hermes-llama2; Eric Hartford’s Wizard Vicuna 13B uncensored Llama 1 13B model fine-tuned to remove alignment; Try it: ollama run wizard-vicuna Example output comparisons We’ve tried running the 7B Llama 2 model against the 7B llama2 uncensored model with the same prompts. Below are the outputs. Disclaimer: Uncensored models carry their own risk. Please use them accordingly. Try running uncensored models yourself with Ollama: https://github.com/jmorganca/ollama

    匹配字段正文

星期五

  1. Lilian Weng:Lil'Log

    LLM 驱动的自主智能体:规划、记忆与工具调用综述

    Lilian Weng 在 Lil'Log 撰文梳理以 LLM 为核心控制器的自主智能体架构,将其拆解为规划、记忆和工具调用三大组件。规划部分涵盖 CoT、Tree of Thoughts、LLM+P 等任务分解方法,以及 ReAct、Reflexion、Chain of Hindsight、Algorithm Distillation 等自我反思机制。记忆部分区分短期上下文学习与基于外部向量库的长期记忆,并介绍 LSH、ANNOY、HNSW、FAISS、ScaNN 等快速 MIPS 检索算法;工具调用部分则列举 MRKL、TALM、Toolformer、HuggingGPT、API-Bank 以及 ChemCrow 等科学发现智能体案例。文末指出有限上下文长度、长期规划与任务分解、自然语言接口可靠性三类常见局限。

    uction). Consequently, much of the agent demo code focuses on parsing model output Cited as: Weng, Lilian. (Jun 2023). “LLM-powered Autonomous Agents”. Lil’Log. https://lilianweng.github.io/posts/2023-06-23-agent/. Or [1] Wei et al. “Chain of thought prompting elicits reasoning in large language models.” NeurIPS 2022 [2] Yao et al. “Tree of Thoughts: Dliberate Problem Solving with Large Language Models.” arXiv preprint arXiv:2305.10601 (2023). [3] Liu et al. “Chain of Hindsight Aligns Language M

    匹配字段正文

星期二

  1. vLLM 官方博客精选

    vLLM 发布基于 PagedAttention 的开源 LLM 推理与服务库

    vLLM 发布开源 LLM 推理与服务库,利用 PagedAttention 管理 KV cache,无需修改模型架构即可实现比 HuggingFace Transformers 最高 24x 的吞吐量。实验中其吞吐量比 TGI 最高提升 3.5x,内存浪费降至 4% 以下;LMSYS 部署后将服务所需 GPU 数量减少 50%。

    GitHub | Documentation | Paper LLMs promise to fundamentally change how we use AI across all industries. However, actually serving these models is challenging and can be surprisingly slow even on expensive hardware. Today we are excited to introduce vLLM, an open-source library for fast LLM inference and serving. vLLM utilizes PagedAttention, our new attention algorithm that effectively manages attention keys and values. vLLM equipped with PagedAttention redefines the new state of the art in LLM

    匹配字段正文

星期四

  1. a16z:News

    a16z 发布 AI Canon:现代 AI 必读资源精选清单

    a16z 发布“AI Canon”精选资源清单,汇集过去几年对 AI 领域影响最大的论文、博客、课程与指南。清单从 Transformer 与潜在扩散模型入门讲起,延伸到 LLM 技术学习、实践指南与 AI 市场分析,并收录以 2017 年 Google 论文《Attention is All You Need》为起点的里程碑研究。

    ging with LLMs at the core. While there isn’t a lot of formal education available on this topic yet, we pulled out some of the most useful resources we’ve found. Reference Build a GitHub support bot with GPT3, LangChain, and Python: One of the earliest public explanations of the modern LLM app stack. Some of the advice in here is dated, but in many ways it kicked off widespread adoption and experimentation of new AI apps; Building LLM applications for production: Chip Huyen discusses many of the

    匹配字段正文

星期三

  1. Lilian Weng:Lil'Log

    大型 Transformer 模型推理优化:蒸馏、量化与剪枝

    Lil'Log 梳理了大型 Transformer 模型的推理优化方法,涵盖知识蒸馏、量化(PTQ 与 QAT)和剪枝。文章指出推理瓶颈主要来自显存占用与低并行性:batch size 512、上下文长度 2048 时 KV cache 总计 3TB,是模型体积的 3 倍,且注意力机制开销随输入序列长度呈平方增长。DistilBERT 在参数减少 40% 的情况下保留 BERT 97% 的下游任务性能,推理速度提升 71%。

    onfidence measures to achieve good performance-efficiency tradeoffs Cited as: Weng, Lilian. (Jan 2023). Large Transformer Model Inference Optimization. Lil’Log. https://lilianweng.github.io/posts/2023-01-10-inference-optimization/. Or [1] Bondarenko et al. “Understanding and overcoming the challenges of efficient transformer quantization” ACL 2021. [2] Dettmers et al. “LLM.int8(): 8-bit Matrix Multiplication for Transformers at Scale” NeuriPS 2022 [3] Zadeh et al. “Gobo: Quantizing attention-bas

    匹配字段正文

星期五

  1. Lilian Weng:Lil'Log

    神经正切核(NTK)背后的数学原理

    Lilian Weng 在 Lil'Log 发文深入解析神经正切核(NTK)的数学原理。NTK 由 Jacot 等人于 2018 年提出,用于解释神经网络在梯度下降训练中的演化过程,并揭示足够宽的神经网络为何能稳定收敛到全局最小值。文章重点推导了无限宽神经网络在不同初始化下 NTK 的确定性收敛证明。

    mmend this post for more discussion on linearized models and lazy training. Cited as: Weng, Lilian. (Sep 2022). Some math behind neural tangent kernel. Lil’Log. https://lilianweng.github.io/posts/2022-09-08-ntk/. Or [1] Jacot et al. “Neural Tangent Kernel: Convergence and Generalization in Neural Networks.” NeuriPS 2018. [2]Radford M. Neal. “Priors for Infinite Networks.” Bayesian Learning for Neural Networks. Springer, New York, NY, 1996. 29-53. [3] Lee & Bahri et al. “Deep Neural Networks as G

    匹配字段正文

星期四

  1. Replit Blog精选

    Replit 发布 Ghostwriter AI 编程助手,Complete Code 进入封闭测试

    Replit 宣布推出 Ghostwriter,把 AI 能力接入几乎全部 IDE 功能,旗舰功能 Complete Code 是实时补全代码的 AI 结对程序员,目前处于封闭测试。官方称通过 FasterTransformer 与 Triton 推理、知识蒸馏和量化等优化,中位响应时间低于 400ms;Explain Code、Generate Code、Transform Code 则调用 OpenAI 等更大模型。Ghostwriter 后续将打包为基于 Cycles 的付费功能,最终计划像 Multiplayer 一样默认免费开放。

    Ghostwriter AI & Complete Code Beta — cover image

    . Please sign up here if you'd like to help us test it. Here is what alpha users are saying about it: "The first thing me and all my friends noticed was how much faster it is than GitHub Copilot. It is at least 2x faster, maybe 3x. It's a little detail but it makes a big difference."; "It makes web development so much easier. I feel like I'm only writing 50% of the code."; "After using the feature for only week, I can't imagine life without it"; "It's crazy how much faster I can learn new things

    匹配字段正文

星期五

  1. Lilian Weng:Lil'Log

    通用视觉语言模型(VLM)的四种技术路线

    Lilian Weng 在 Lil'Log 中把扩展预训练语言模型以处理视觉信号的视觉语言模型(VLM)归纳为四类:将图像转为可与 token 嵌入联合训练的嵌入向量、学习可作为冻结语言模型前缀的图像嵌入、用交叉注意力把视觉信息融入语言模型各层,以及不做任何训练直接组合视觉与语言模型。文中以 VisualBERT、SimVLM、CM3、Frozen 和 ClipCap 为例展开分析。

    rationales) from 10,234 diverse TV Show and YouTube Lifestyle Vlog video clips Cited as: Weng, Lilian. (Jun 2022). Generalized visual language models. Lil’Log. https://lilianweng.github.io/posts/2022-06-09-vlm/. Or [1] Li et al. “VisualBERT: A Simple and Performant Baseline for Vision and Language.” arXiv preprint:1908.03557 (2019). [2] Wang et al. “SimVLM: Simple Visual Language Model Pretraining with Weak Supervision.” ICLR 2022. [3] Aghajanyan, et al. “CM3: A Causal Masked Multimodal Model o

    匹配字段正文

星期六

  1. Lilian Weng:Lil'Log

    数据不足下的学习 Part 3:数据生成 | Lil'Log

    Lil'Log 发布《Learning with not Enough Data》系列第三篇,聚焦用合成数据训练的两条路径:对已有样本做增强,或在少样本甚至无样本时用预训练大语言模型生成新数据。图像侧介绍了 AutoAugment、RandAugment、PBA、UDA 等增强策略,以及 Mixup、Cutmix、MoCHi 等图像混合方法;文本侧介绍了 EDA 的同义词替换、随机插入、随机交换、随机删除四种操作,以及用 BERT 等双向 LM 做上下文替换的 Contextual Augmentation。

    e high or the corruption transition matrix is not symmetric. Cited as: Weng, Lilian. (Apr 2022). Learning with not enough data part 3: data generation. Lil’Log. https://lilianweng.github.io/posts/2022-04-15-data-gen/. Or [1] Zhang et al. “Adversarial AutoAgument” ICLR 2020. [2] Kumar et al. “Data Augmentation using Pre-trained Transformer Models.” AACL 2020 Workshop. [3] Anaby-Tavor et al. “Not enough data? Deep learning to rescue!” AAAI 2020. [4] Wang et al. “Want To Reduce Labeling Cost? GPT-3

    匹配字段正文

星期日

  1. Lilian Weng:Lil'Log

    Lilian Weng 详解主动学习:预算受限下如何挑选最有价值的标注样本

    Lilian Weng 在 Lil'Log 发文介绍主动学习:给定无标注数据集和固定标注预算 B,主动学习要从中挑出 B 个样本送标,以最大化模型性能提升,适合医学图像等标注昂贵场景。文章梳理了不确定性采样(least confident、margin、entropy)、Query-By-Committee、多样性采样、期望模型变化与混合策略,并把模型不确定性分为数据噪声导致的 aleatoric 与参数层面的 epistemic 两类。

    etter in time, the threshold $\delta$ decays in time as well Cited as: Weng, Lilian. (Feb 2022). Learning with not enough data part 2: active learning. Lil’Log. https://lilianweng.github.io/posts/2022-02-20-active-learning/. Or [1] Burr Settles. Active learning literature survey. University of Wisconsin, Madison, 52(55-66):11, 2010. [3] Yang et al. “Cost-effective active learning for deep image classification” TCSVT 2016. [4] Yarin Gal et al. “Dropout as a Bayesian Approximation: representing mo

    匹配字段正文

星期日

  1. Lilian Weng:Lil'Log

    数据不足时的学习(上):半监督学习 | Lil'Log

    Lilian Weng 在 Lil'Log 发布“Learning with not Enough Data”系列第一篇,聚焦半监督学习:同时利用有标签和无标签数据训练模型,损失由监督损失与无监督损失相加构成。文章梳理一致性正则化方法,包括 Π-model、Temporal Ensembling 和 Mean teachers,并讨论伪标签、标签传播与自训练中的确认偏差问题。

    eudo label distribution to reduce the class overlap Cited as: Weng, Lilian. (Dec 2021). Learning with not enough data part 1: semi-supervised learning. Lil’Log. https://lilianweng.github.io/posts/2021-12-05-semi-supervised/. Or [1] Ouali, Hudelot & Tami. “An Overview of Deep Semi-Supervised Learning” arXiv preprint arXiv:2006.05278 (2020). [2] Sajjadi, Javanmardi & Tasdizen “Regularization With Stochastic Transformations and Perturbations for Deep Semi-Supervised Learning.” arXiv preprint arXiv:

    匹配字段正文

星期五

  1. Lilian Weng:Lil'Log

    如何在多 GPU 上训练超大模型?

    Lilian Weng 在 Lil'Log 中梳理了在多 GPU 上训练超大模型所需的并行范式:数据并行(DP)通过复制模型权重并切分数据,配合 BSP、ASP 或梯度累积同步梯度;模型并行(MP)将模型权重与计算切分到多机;流水线并行(PP)把 minibatch 拆成多个 microbatch 以缩小等待气泡,GPipe 在 microbatch 数超过分区数 4 倍时气泡开销几乎可忽略。

    utation, constant buffer size and on-the-fly memory defragmentation. Cited as: Weng, Lilian. (Sep 2021). How to train really large models on many GPUs? Lil’Log. https://lilianweng.github.io/posts/2021-09-25-train-large/. Or [1] Li et al. “PyTorch Distributed: Experiences on Accelerating Data Parallel Training” VLDB 2020. [2] Cui et al. “GeePS: Scalable deep learning on distributed GPUs with a GPU-specialized parameter server” EuroSys 2016 [3] Shoeybi et al. “Megatron-LM: Training Multi-Billion P

    匹配字段正文

星期一

  1. Lilian Weng:Lil'Log

    对比表征学习:从 Contrastive Loss 到 InfoNCE 的训练目标演进

    对比表征学习的目标是学习一个嵌入空间,让相似样本对彼此靠近、不相似样本对彼此远离,可应用于监督与无监督场景,也是自监督学习中最强大的方法之一。文章梳理了对比学习训练目标的演进:从早期只涉及一个正样本和一个负样本的 Contrastive Loss(Chopra 等 2005)与 Triplet Loss(FaceNet,Schroff 等 2015),到在一个 batch 内引入多对正负样本的 Lifted Structured Loss、N-pair Loss、NCE 与 InfoNCE(CPC,van den Oord 等 2018)。

    I datasets, IS-BERT produces results comparable with SBERT (See Fig. 25 & 30). Cited as: Weng, Lilian. (May 2021). Contrastive representation learning. Lil’Log. https://lilianweng.github.io/posts/2021-05-31-contrastive/. Or [1] Sumit Chopra, Raia Hadsell and Yann LeCun. “Learning a similarity metric discriminatively, with application to face verification.” CVPR 2005. [2] Florian Schroff, Dmitry Kalenichenko and James Philbin. “FaceNet: A Unified Embedding for Face Recognition and Clustering.” CV

    匹配字段正文

星期日

  1. Lilian Weng:Lil'Log

    如何降低语言模型的毒性 | Lil'Log

    Lil'Log 发文探讨大语言模型的毒性问题,指出预训练模型从互联网数据中不可避免地习得毒性行为与偏见,安全部署需对生成过程施加强控制。文章梳理了 Perspective API、Kurita 等对毒性内容的定义,并介绍了 Zampieri 等提出的三级攻击性语言分类体系及 OLID 数据集。数据标注可通过专家编码、众包、专业审核员和合成数据四种方式收集。

    studying the risk of neural toxic degeneration in language models. [Download] Cited as: Weng, Lilian. (Mar 2021). Reducing toxicity in language models. Lil’Log. https://lilianweng.github.io/posts/2021-03-21-lm-toxicity/. Or [1] Vidgen, et al. “Challenges and frontiers in abusive content detection.” Workshop on Abusive Language Online 2019. [2] Zampieri et al. “Predicting the type and target of offensive posts in social media.” NAACL 2019. [3] Vidgen & Deczynski. “Directions in abusive language t

    匹配字段正文

星期四

  1. Lilian Weng:Lil'Log

    如何构建开放域问答系统?| Lil'Log

    Lil'Log 回顾了构建开放域问答(ODQA)系统的常见方法,核心是 DrQA 提出的 retriever + reader 框架:先用 TF-IDF 经典 IR 或神经网络稠密向量检索相关文档,再抽取答案。DrQA 以 Wikipedia 为知识源返回 top k=5 篇文章,BERTserini 则用 Anserini 检索 top k=10 文档并以 BM25 排序、BERT 作答。文中还指出公开 QA 数据集中 58-71% 的测试答案出现在训练集里。

    and masked. The task is to predict this masked salient span Cited as: Weng, Lilian. (Oct 2020). How to build an open-domain question answering system? Lil’Log. https://lilianweng.github.io/posts/2020-10-29-odqa/. Or SQuAD 2.0: the Stanford QA dataset; RACE: a reading comprehension dataset collected from English Examinations that are created for middle school and high school students; TREC QA: the TREC QA collections; MS MARCO: a QA dataset featuring 100,000 real Bing questions and a human gener

    匹配字段正文

星期四

  1. Lilian Weng:Lil'Log

    神经架构搜索(NAS)综述:搜索空间、算法与评估策略

    Lilian Weng 在 Lil'Log 撰文梳理神经架构搜索(NAS),将其拆解为搜索空间、搜索算法与评估策略三大组件。文章回顾了 Zoph & Le 2017 的序列化逐层操作搜索空间(曾用 800 块 GPU 并行跑 28 天)以及 NASNet 的 cell 表示,后者通过重复堆叠 normal cell 与 reduction cell 大幅缩小搜索空间并提升跨数据集迁移性。

    th a random choice (e.g. “swap the output address” or “change the value of a constant”) Cited as: Weng, Lilian. (Aug 2020). Neural architecture search. Lil’Log. https://lilianweng.github.io/posts/2020-08-06-nas/. Or [1] Thomas Elsken, Jan Hendrik Metzen, Frank Hutter. “Neural Architecture Search: A Survey” JMLR 20 (2019) 1-21. [2] Kenneth O. Stanley, et al. “Designing neural networks through neuroevolution” Nature Machine Intelligence volume 1, pages 24–35 (2019). [3] Kenneth O. Stanley & Risto

    匹配字段正文

星期日

  1. Lilian Weng:Lil'Log

    深度强化学习中的探索策略

    Lilian Weng 在 Lil'Log 梳理了深度强化学习中的常见探索策略,包括 epsilon-greedy、UCB、Boltzmann 探索、Thompson 采样,以及熵损失项和基于噪声的探索。文章重点讨论 hard-exploration 与 Noisy-TV 两个难题,并介绍以内在奖励加成鼓励探索的思路,如基于计数的探索方法。

    atent skill variable. See my previous post for more details. Cited as: Weng, Lilian. (Jun 2020). Exploration strategies in deep reinforcement learning. Lil’Log. https://lilianweng.github.io/posts/2020-06-07-exploration-drl/. Or [1] Pierre-Yves Oudeyer & Frederic Kaplan. “How can we define intrinsic motivation?” Conf. on Epigenetic Robotics, 2008. [2] Marc G. Bellemare, et al. “Unifying Count-Based Exploration and Intrinsic Motivation”. NIPS 2016. [3] Georg Ostrovski, et al. “Count-Based Explorat

    匹配字段正文

星期三

  1. Lilian Weng:Lil'Log

    强化学习中的课程学习(Curriculum Learning)

    Lilian Weng 梳理了强化学习中的课程学习(curriculum learning)方法:从 1993 年 Elman 用课程训练神经网络学习简单语言语法,到 Bengio 等 2009 年对课程学习的综述,再到 Zaremba & Sutskever 用 LSTM 预测 Python 程序输出、PCG 程序化生成关卡以及 OpenAI 解魔方时使用的自动域随机化(ADR)。课程学习有望加快收敛速度,但设计不当的课程反而可能损害学习效果。

    xt{RL}(\theta \vert \pi \text{mm}) + \lambda \mathcal{L} \text{mm}(\theta)$. Cited as: Weng, Lilian. (Jan 2020). Curriculum for reinforcement learning. Lil’Log. https://lilianweng.github.io/posts/2020-01-29-curriculum-rl/. Or [1] Jeffrey L. Elman. “Learning and development in neural networks: The importance of starting small.” Cognition 48.1 (1993): 71-99. [2] Yoshua Bengio, et al. “Curriculum learning.” ICML 2009. [3] Daphna Weinshall, Gad Cohen, and Dan Amir. “Curriculum learning by transfer l

    匹配字段正文

星期四

  1. Lilian Weng:Lil'Log

    深度神经网络真的严重过拟合了吗?| Lil'Log

    Lilian Weng 在 Lil'Log 撰文探讨深度神经网络为何在参数极多、训练误差可轻易趋近于零的情况下仍能泛化,并梳理了奥卡姆剃刀、最小描述长度(MDL)原理与 Kolmogorov 复杂度等经典理论。文章还讨论了双层神经网络有限样本表达能力、深度网络可学习随机噪声,并于 2019-05-27 补充了 Lottery Ticket Hypothesis 一节。

    l the interesting findings above, it should be pretty fun to reproduce them. Some results are easily to reproduce than others. Details are described below. My code is available on github lilianweng/generalization-experiment. This is the trickiest one to reproduce. The authors did give me a lot of good advice and I appreciate it a lot. Here are a couple of noticeable settings in their experiments: There are no regularization terms like weight decay, dropout; In Fig 3, the training set contains 4k

    匹配字段正文

星期日

  1. Lilian Weng:Lil'Log

    策略梯度算法详解 | Lil'Log

    Lil'Log 发布《策略梯度算法》一文,系统讲解策略梯度这一强化学习求解思路:直接对参数化策略 πθ(a|s) 建模并优化,用梯度上升最大化奖励目标 J(θ)。文章给出策略梯度定理的完整证明,说明它如何避开状态分布 dπ(.) 的导数、简化 ∇θJ(θ) 的计算,并指出原始策略梯度更新无偏但方差高,后续算法多围绕降方差展开。

    same type may vary a lot across multiple robots. Batch normalization is applied to fix it by normalizing every dimension across samples in one minibatch. D4PG [paper|code (Search “github d4pg” and you will see a few.)] Distributed Distributional DDPG (D4PG) applies a set of improvements on DDPG to make it run in the distributional fashion. (1) Distributional Critic: The critic estimates the expected Q value as a random variable a distribution $Z w$ parameterized by $w$ and therefore $Q w(s, a) =

    匹配字段正文