# llama2

Published articles for llama2.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## SMELL: Sparsity-aware Memory Efficient Federated Fine-tuning for Long-context LLMs

DevFeed: [SMELL: Sparsity-aware Memory Efficient Federated Fine-tuning for Long-context LLMs](<https://devfeed.tech/articles/smell-sparsity-aware-memory-efficient-federated-fine-tuning-for-long-context-llms-136982.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.19349>)

Author: Yin Xu, Yongbo Yang, He Sun, Miao Sun, Mingjun Xiao

Published: 2026-11-17T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Artificial Intelligence](<https://devfeed.tech/sources/arxiv-artificial-intelligence.md>), [arXiv: Distributed Computing](<https://devfeed.tech/sources/arxiv-distributed-computing.md>), [arXiv: Machine Learning](<https://devfeed.tech/sources/arxiv-machine-learning.md>)

Topics: [Fine-tuning](<https://devfeed.tech/topics/fine-tuning.md>), [Large Language Model](<https://devfeed.tech/topics/llm.md>), [long-context](<https://devfeed.tech/topics/long-context.md>), [lora](<https://devfeed.tech/topics/lora.md>)

Tags: [activation](<https://devfeed.tech/tags/activation.md>), [clients](<https://devfeed.tech/tags/clients.md>), [communication](<https://devfeed.tech/tags/communication.md>), [consensus](<https://devfeed.tech/tags/consensus.md>), [context](<https://devfeed.tech/tags/context.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [cs-dc](<https://devfeed.tech/tags/cs-dc.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [data](<https://devfeed.tech/tags/data.md>), [distributed](<https://devfeed.tech/tags/distributed.md>), [experiments](<https://devfeed.tech/tags/experiments.md>), [federated](<https://devfeed.tech/tags/federated.md>), [fine-tuning](<https://devfeed.tech/tags/fine-tuning.md>), [framework](<https://devfeed.tech/tags/framework.md>), [language-models](<https://devfeed.tech/tags/language-models.md>), [large-language-models-llms](<https://devfeed.tech/tags/large-language-models-llms.md>), [llama2](<https://devfeed.tech/tags/llama2.md>), [llms](<https://devfeed.tech/tags/llms.md>), [long-context](<https://devfeed.tech/tags/long-context.md>), [long-context-llms](<https://devfeed.tech/tags/long-context-llms.md>), [lora](<https://devfeed.tech/tags/lora.md>), [memory](<https://devfeed.tech/tags/memory.md>), [sparsity](<https://devfeed.tech/tags/sparsity.md>)

### AI overview

SMELL addresses memory use, client-to-client variation in token importance, and communication costs in federated long-context LLM fine-tuning. It combines Local Sparse-Forward Adaptation (LSFA) for memory-efficient local adaptation, Consensus-Anchored Sparsity Coordination (CASC) for coordinating sparsity across heterogeneous clients, and Communication-Efficient Progressive Update Recovery (CPUR) for compact update transmission with progressive reconstruction. Experiments on OPT-350M and LLaMA2-7B report peak-memory reductions of up to 88.35% versus conventional fine-tuning and 13.25% versus forward-only LoRA at 16K context. The abstract also reports improved fine-tuning performance under certain non-IID settings; it does not specify how broadly those gains hold.

### Source excerpt

arXiv:2611.19349v1 Announce Type: cross Abstract: Federated fine-tuning enables Large Language Models (LLMs) to collaboratively adapt to distributed private data. However, long-context fine-tuning on resource-constrained devices faces substantial challenges arising from excessive activation memory, heterogeneous token-importance patterns across clients, and communication overhead. To address these challenges, we propose SMELL, a Sparsity-aware and Memory-Efficient federated fine-tuning framework for Long-context LLMs. SMELL integrates three complementary mechanisms: Local Sparse-Forward Adaptation (LSFA), Consensus-Anchored Sparsity Coordination (CASC), and Communication-Efficient Progressive Update Recovery (CPUR). These mechanisms jointly enable memory-efficient local adaptation, heterogeneity-aware sparsity coordination, and lightweight model-update transmission. Experiments on OPT-350M and LLaMA2-7B demonstrate that SMELL reduces peak memory consumption by up to 88.35% compared with conventional fine-tuning and 13.25% compared with forward-only LoRA fine-tuning at a 16K context length. Furthermore, SMELL improves fine-tuning performance under certain non-IID settings and supports compact update transmission with progressive reconstruction, demonstrating its potential for resource-efficient federated long-context LLM adaptation.

## Dominant-Layer ZO: A Single Layer Dominates Zeroth-Order Fine-Tuning of LLMs

DevFeed: [Dominant-Layer ZO: A Single Layer Dominates Zeroth-Order Fine-Tuning of LLMs](<https://devfeed.tech/articles/dominant-layer-zo-a-single-layer-dominates-zeroth-order-fine-tuning-of-llms-123175.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2606.05516>)

Author: Wanhao Yu, Ziyan Wang, Zheng Wang, Abeer Matar Almalky, Yihang Zuo, Shuteng Niu, Sen Lin, Adnan Siraj Rakin, Deliang Fan, Li Yang

Published: 2026-11-09T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Machine Learning](<https://devfeed.tech/sources/arxiv-machine-learning.md>)

Topics: [Fine-tuning](<https://devfeed.tech/topics/fine-tuning.md>), [Large Language Model](<https://devfeed.tech/topics/llm.md>), [LLM optimization](<https://devfeed.tech/topics/llm-optimization.md>), [LLM evaluation / benchmarking](<https://devfeed.tech/topics/llm-evaluation-benchmarking.md>)

Tags: [activation](<https://devfeed.tech/tags/activation.md>), [benchmarks](<https://devfeed.tech/tags/benchmarks.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [fine-tuning](<https://devfeed.tech/tags/fine-tuning.md>), [inference](<https://devfeed.tech/tags/inference.md>), [language-models](<https://devfeed.tech/tags/language-models.md>), [layer](<https://devfeed.tech/tags/layer.md>), [llama2](<https://devfeed.tech/tags/llama2.md>), [llms](<https://devfeed.tech/tags/llms.md>), [optimization](<https://devfeed.tech/tags/optimization.md>), [outliers](<https://devfeed.tech/tags/outliers.md>), [performance](<https://devfeed.tech/tags/performance.md>), [qwen3](<https://devfeed.tech/tags/qwen3.md>)

### AI overview

The study reports that zeroth-order fine-tuning of LLMs is often dominated by one decoding layer: tuning that layer alone matched or exceeded full-model ZO fine-tuning across the tested models and tasks. The layer is described as task-agnostic but model-specific and identifiable before training by locating the first activation-outlier layer. The authors attribute its influence to high perturbation sensitivity and early placement in the residual stream, which lets effects propagate through later layers and yield strong, stable optimization signals. On LLaMA2-7B and Qwen3-8B across nine benchmarks, their approach improved average performance over full-model MeZO and LoRA-based ZO fine-tuning, with up to 4.52x training speedup.

### Source excerpt

arXiv:2606.05516v2 Announce Type: replace Abstract: Zeroth-order (ZO) optimization enables memory-efficient fine-tuning of large language models (LLMs) using only forward passes, but it remains unclear how useful adaptation is distributed across layers. In this work, we reveal a surprising phenomenon: ZO fine-tuning is sharply dominated by a single decoding layer. Across multiple LLM families and downstream tasks, fine-tuning this dominant layer alone consistently matches or even exceeds full-model ZO fine-tuning. We further show that the dominant layer is task-agnostic but model-specific, and can be identified before training through a simple inference-only analysis of activation outliers. Specifically, the dominant layer consistently aligns with the first activation-outlier layer in the pre-trained model. To explain this phenomenon, we analyze how perturbation effects propagate under ZO optimization. We find that the dominant layer combines two key properties: high perturbation sensitivity and early placement in the residual stream, allowing perturbation-induced effects to propagate and accumulate through remaining subsequent decoding layers. As a result, this layer produces disproportionately strong and stable optimization signals under forward-only updates. Extensive experiments on LLaMA2-7B and Qwen3-8B across nine benchmarks show that dominant-layer ZO fine-tuning improves average performance over full-model MeZO and LoRA-based ZO fine-tuning while achieving up to 4.52$\times$ training speedup.

## Prune Gradually, Adapt Sparsely: Efficient Pruning of Large Language Models at Extreme Sparsity

DevFeed: [Prune Gradually, Adapt Sparsely: Efficient Pruning of Large Language Models at Extreme Sparsity](<https://devfeed.tech/articles/prune-gradually-adapt-sparsely-efficient-pruning-of-large-language-models-at-extreme-sparsity-112130.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2610.41968>)

Author: Jean Lucien Randrianantenaina, Hung Nguyen, Nasib Ullah, Jinbin Zhang, Nilesh Gupta, Inderjit S. Dhillon, Rohit Babbar

Published: 2026-11-02T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Artificial Intelligence](<https://devfeed.tech/sources/arxiv-artificial-intelligence.md>)

Topics: [Post-training optimization](<https://devfeed.tech/topics/post-training-optimization.md>), [LLM Techniques](<https://devfeed.tech/topics/llm-techniques.md>), [Large Language Model](<https://devfeed.tech/topics/llm.md>)

Tags: [cost](<https://devfeed.tech/tags/cost.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [inference](<https://devfeed.tech/tags/inference.md>), [language-models](<https://devfeed.tech/tags/language-models.md>), [large-language-models](<https://devfeed.tech/tags/large-language-models.md>), [llama2](<https://devfeed.tech/tags/llama2.md>), [llms](<https://devfeed.tech/tags/llms.md>), [mask](<https://devfeed.tech/tags/mask.md>), [model](<https://devfeed.tech/tags/model.md>), [models](<https://devfeed.tech/tags/models.md>), [perplexity](<https://devfeed.tech/tags/perplexity.md>), [quality](<https://devfeed.tech/tags/quality.md>), [reduce](<https://devfeed.tech/tags/reduce.md>), [sparsity](<https://devfeed.tech/tags/sparsity.md>)

### AI overview

ETAPS combines gradual pruning with sparse adaptation: it tightens a global sparsity constraint in stages while training a sparse delta with a small, fixed budget. The adapted model supplies end-to-end gradients for the next pruning decision, avoiding model-sized optimizer state. Across six models (125M-13B parameters), ETAPS reports lower perplexity than ELSA at every tested sparsity from 50% to 90%, with reductions of up to 42%. At 90% sparsity on LLaMA2-7B, ETAPS runs on one H200 versus four for ELSA, with 5.0x less total persistent state and 49% fewer GPU-hours. These results are reported in the supplied abstract.

### Source excerpt

arXiv:2610.41968v1 Announce Type: new Abstract: Weight pruning can reduce the storage and inference cost of large language models (LLMs), but preserving quality at high sparsity levels remains challenging. Existing methods face a quality-cost trade-off in this regime. One-shot pruning is cheap but degrades sharply as sparsity increases, even when followed by post-pruning recovery. A growing line of work instead optimizes the mask directly from the dense model under the end-to-end objective; among these methods, [Lee et al.,2026], the recent state of the art at extreme sparsity, reaches high quality but at the cost of model-sized optimizer state and auxiliary variables. To address this gap, we propose ETAPS, which prunes gradually and adapts sparsely: it tightens a global sparsity constraint in progressive stages while training a sparse delta with a small, fixed budget. Our key observation is that gradual weight removal keeps each pruning step small enough for sparse adaptation to compensate, allowing the adapted model to provide end-to-end gradients that guide the next pruning decision without model-sized optimizer state. Across six models from 125M to 13B parameters, ETAPS achieves lower perplexity than ELSA at every evaluated sparsity from 50% to 90%, with perplexity reductions of up to 42%. ETAPS is also far cheaper: at 90% sparsity, it prunes LLaMA2-7B on a single H200, where ELSA uses four, with $5.0\times$ smaller total persistent state and 49% fewer GPU-hours. Together, our findings point to a promising direction for achieving high quality in demanding regimes such as extreme sparsity at substantially lower cost.

## Trainable Vector Quantization for Large Language Models

DevFeed: [Trainable Vector Quantization for Large Language Models](<https://devfeed.tech/articles/trainable-vector-quantization-for-large-language-models-111635.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2610.41822>)

Author: Anastasiia Prutianova, Alina Bogdanova, Mikhail Shutov, Dmitrii Poimanov, Anatoly Gorkov, Ilia Zharikov

Published: 2026-11-02T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Machine Learning](<https://devfeed.tech/sources/arxiv-machine-learning.md>)

Topics: [quantization](<https://devfeed.tech/topics/quantization.md>), [LLM optimization](<https://devfeed.tech/topics/llm-optimization.md>), [Post-training optimization](<https://devfeed.tech/topics/post-training-optimization.md>), [LLM Techniques](<https://devfeed.tech/topics/llm-techniques.md>), [Large Language Model](<https://devfeed.tech/topics/llm.md>)

Tags: [benchmarks](<https://devfeed.tech/tags/benchmarks.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [gradient](<https://devfeed.tech/tags/gradient.md>), [gradient-descent](<https://devfeed.tech/tags/gradient-descent.md>), [inference](<https://devfeed.tech/tags/inference.md>), [knowledge-distillation](<https://devfeed.tech/tags/knowledge-distillation.md>), [language-models](<https://devfeed.tech/tags/language-models.md>), [large-language-models](<https://devfeed.tech/tags/large-language-models.md>), [llama2](<https://devfeed.tech/tags/llama2.md>), [machine-learning](<https://devfeed.tech/tags/machine-learning.md>), [memory](<https://devfeed.tech/tags/memory.md>), [post-training](<https://devfeed.tech/tags/post-training.md>), [pytorch](<https://devfeed.tech/tags/pytorch.md>), [quantization](<https://devfeed.tech/tags/quantization.md>), [training](<https://devfeed.tech/tags/training.md>)

### AI overview

TVQ makes vector-quantized LLM weights trainable through straight-through estimation and latent weights, allowing gradient-based optimization beyond layer-wise reconstruction loss. The authors apply it to block-wise knowledge distillation to balance model quality and training efficiency, with additional methods to accelerate training. They report compatibility with modern VQ schemes and state-of-the-art quality in low-bit post-training quantization using a modest training budget. For LLaMA2-70B, they report near-lossless 2-bit quantization with a 1% accuracy drop on popular question-answering benchmarks. These are abstract-level claims; the excerpt does not provide experimental details.

### Source excerpt

arXiv:2610.41822v1 Announce Type: new Abstract: Vector Quantization (VQ) is a rapidly evolving technique for compressing Large Language Model (LLM) weights, reducing memory usage, and speeding up inference. However, extreme compression deteriorates model performance, which is challenging to recover due to the discrete nature of VQ parameters. Existing methods employ training-free approaches that are limited to layer-wise reconstruction loss minimization. To address this limitation, we propose TVQ, a novel method that leverages straight-through estimation to enable gradient descent-based optimization of vector-quantized LLMs. By reformulating VQ LLM optimization with trainable latent weights, TVQ enables arbitrary objective minimization. We constitute our approach by applying TVQ in a block-wise knowledge distillation paradigm, which balances quality and training efficiency, and propose several practical solutions to accelerate training. In experiments on modern LLMs, we demonstrate that TVQ is compatible with modern VQ schemes. As a result, TVQ achieves state-of-the-art quality in low-bit post-training quantization settings with a modest training budget and straightforward PyTorch implementation. For instance, TVQ achieves near-lossless 2-bit quantization for LLaMA2-70B with only 1% accuracy drop on popular Question-Answering benchmarks.

## Using LangSmith to Support Fine-tuning

DevFeed: [Using LangSmith to Support Fine-tuning](<https://devfeed.tech/articles/using-langsmith-to-support-fine-tuning-78364.md>)

Original publisher: [Read original article](<https://www.langchain.com/blog/using-langsmith-to-support-fine-tuning-of-open-source-llms>)

Author: LangChain Accounts

Published: 2026-08-26T10:46:33Z

Content type: tutorial

Language: en

Sources: [LangChain Blog](<https://devfeed.tech/sources/langchain-blog.md>)

Topics: [Fine-tuning](<https://devfeed.tech/topics/fine-tuning.md>), [lora](<https://devfeed.tech/topics/lora.md>), [peft](<https://devfeed.tech/topics/peft.md>), [Test-driven development](<https://devfeed.tech/topics/tdd.md>)

Tags: [fine-tuning](<https://devfeed.tech/tags/fine-tuning.md>), [gpt-3](<https://devfeed.tech/tags/gpt-3.md>), [langsmith](<https://devfeed.tech/tags/langsmith.md>), [llama2](<https://devfeed.tech/tags/llama2.md>), [llms](<https://devfeed.tech/tags/llms.md>)

### AI overview

A practical guide shows how LangSmith supports dataset collection, fine-tuning, and evaluation for open-source LLMs and GPT-3.5. Its knowledge-graph extraction example compares fine-tuned LLaMA2 and GPT-3.5 models with prompted alternatives; GPT-4 prompting scored highest, while fine-tuned LLaMA2 outperformed the GPT-3.5 baseline.

### Source excerpt

Learn how to fine-tune and evaluate LLMs with LangSmith for dataset management. Complete guide covers LLaMA2 and GPT-3.5 fine-tuning with practical examples.

## Free, private, secure artificial intelligence tools with Ollama

DevFeed: [Free, private, secure artificial intelligence tools with Ollama](<https://devfeed.tech/articles/free-private-secure-artificial-intelligence-with-ollama-66244.md>)

Original publisher: [Read original article](<https://www.youtube.com/watch?v=UIupFF6yNns>)

Published: 2024-03-30T12:00:00Z

Content type: tutorial

Language: en

Sources: [Automate Your Network](<https://devfeed.tech/sources/automate-your-network.md>)

Topics: [Ollama](<https://devfeed.tech/topics/ollama.md>), [Artificial Intelligence](<https://devfeed.tech/topics/ai.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [anthropic](<https://devfeed.tech/tags/anthropic.md>), [artificial-intelligence](<https://devfeed.tech/tags/artificial-intelligence.md>), [chatgpt](<https://devfeed.tech/tags/chatgpt.md>), [chatgpt4](<https://devfeed.tech/tags/chatgpt4.md>), [claude](<https://devfeed.tech/tags/claude.md>), [docker](<https://devfeed.tech/tags/docker.md>), [free](<https://devfeed.tech/tags/free.md>), [github](<https://devfeed.tech/tags/github.md>), [huggingface](<https://devfeed.tech/tags/huggingface.md>), [llama2](<https://devfeed.tech/tags/llama2.md>), [mistral](<https://devfeed.tech/tags/mistral.md>), [mixtral](<https://devfeed.tech/tags/mixtral.md>), [ollama](<https://devfeed.tech/tags/ollama.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [openai](<https://devfeed.tech/tags/openai.md>), [private](<https://devfeed.tech/tags/private.md>), [video](<https://devfeed.tech/tags/video.md>)

### AI overview

An introduction to artificial intelligence tools described as free, private, secure, and open source, including Ollama.

### Source excerpt

John Capobianco - Video publication