惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

WordPress大学
WordPress大学
D
Darknet – Hacking Tools, Hacker News & Cyber Security
Hacker News: Ask HN
Hacker News: Ask HN
N
News and Events Feed by Topic
Forbes - Security
Forbes - Security
The Last Watchdog
The Last Watchdog
TaoSecurity Blog
TaoSecurity Blog
Schneier on Security
Schneier on Security
SecWiki News
SecWiki News
V
Vulnerabilities – Threatpost
Project Zero
Project Zero
O
OpenAI News
W
WeLiveSecurity
Security Archives - TechRepublic
Security Archives - TechRepublic
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
H
Hacker News: Front Page
Cisco Talos Blog
Cisco Talos Blog
Spread Privacy
Spread Privacy
Help Net Security
Help Net Security
P
Privacy & Cybersecurity Law Blog
K
Kaspersky official blog
S
Security @ Cisco Blogs
Latest news
Latest news
AWS News Blog
AWS News Blog
U
Unit 42
Martin Fowler
Martin Fowler
阮一峰的网络日志
阮一峰的网络日志
S
Secure Thoughts
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Application and Cybersecurity Blog
Application and Cybersecurity Blog
Know Your Adversary
Know Your Adversary
Scott Helme
Scott Helme
博客园 - 司徒正美
B
Blog RSS Feed
C
Check Point Blog
Hacker News - Newest:
Hacker News - Newest: "LLM"
D
Docker
Google Online Security Blog
Google Online Security Blog
Jina AI
Jina AI
aimingoo的专栏
aimingoo的专栏
Recent Commits to openclaw:main
Recent Commits to openclaw:main
Last Week in AI
Last Week in AI
月光博客
月光博客
C
CXSECURITY Database RSS Feed - CXSecurity.com
S
SegmentFault 最新的问题
NISL@THU
NISL@THU
T
The Blog of Author Tim Ferriss
C
Cisco Blogs
Attack and Defense Labs
Attack and Defense Labs
小众软件
小众软件

Xinwei Xiong (cubxxw) - AI, Open Source & Nomad Blog

2026 June Thought Notes: The Pushing-Away Comes Be… | cubxxw Dissecting open-lovable: An App Generator That Tam… | cubxxw Ignite and Settle (Part 3): Anxious Attachment — W… | cubxxw Ignite and Settle (Part 2): Avoidant Attachment — … | cubxxw Ignite and Settle (Part 1): The Quality and Time o… | cubxxw The Super-Individual Stack: AI-Native Product Dire… | cubxxw Building a Production-Grade AI Agent System from S… | cubxxw Seen Clearly, Loved Deeply: Five Lenses on Love, a… | cubxxw Context Is Not Prompt: Why Context Engineering Is Becoming AI's New Foundation The Agent Engineering Map: Where Does That 98.4% o… | cubxxw April 2026 Thought Notes Agent Identity: From Locke to OpenClaw Maintaining Self-Worth in the Age of AI March 2026 Thought Notes Lhasa: Slow and Heavy Wandering & Growing: 2025-2026 Annual Review AI and Self-Identity: Who Am I in the AI Age February 2026 Thought Notes January 2026 Thought Notes December 2025 Thought Notes Japan Travel Notes — Learning to Be with Time Through Wood, Fire, and Gaps 2025 November Thought Notes October 2025 Thought Notes September 2025 Thought Notes 2025 August Thought Notes 2025 July Thought Notes 2025 June Thought Notes Metacognitive Transformation Review 2025 May Thought Notes 2025 April Thought Notes AI Recommendation Systems: How They Work NotebookLM: Google's AI Research Tool TDD for AI: Test-Driven Development Guide MarkItDown: Convert Documents to Markdown LangGraph: Stateful AI Agent Workflows LangChain: Open Source LLM Framework LLM/AI API Gateway Market Analysis & Startup Stack Recommendations Independent Developer in the AI Era: Open Source Deep Dive GPT Researcher: Open Source Deep Dive Jina AI: Multimodal Search & Embeddings 2025 March Thought Notes 2024 Annual Review Travel Footprints About Me Kubernetes Resources and Learning Path Summary LangChain: Building LLM Applications Large Language Models: How LLMs Work Open Source Resume Builders & Career Tips Troubleshooting Guide for OpenIM Navigating the Open Source Landscape Sora Ease Guide: Mastering Sora AI for Developers In 2023, I Was Wandering at the Edge of the World Exploring Sora Technology for Enthusiasts and Developers Combining GitHub and Google Workspace for Effective Project Management Brain-Friendly English Learning Strategies Flow State: Deep Focus and Happiness Guide GTD and the Quadrant Method Practice Go Directives & Automation Tools Deep Dive Concurrent Type Checking and Cross-Platform Development in Go Vector Database Learning OpenIM: Version Control & Testing Workflow 2023 Annual Summary Reflections and Aspirations GitOps & Kubernetes Deployment Strategies Deployment and Design of Management Backend and Monitoring Hugo Advanced Tutorial Kubernetes for Kustomize Learning OpenIM Use Harbor Build Enterprise Mirror Repositories Learn About Automated Testing Deep Dive into Kubernetes CNI, CRI, CSI Components Kubernetes Control Plane - Detailed Analysis of Kubelet Kubernetes Control Plane - Scheduler In-depth understanding of the components of Kubernetes Kube apisserver Deep Dive Into the Components of Kubernetes Etcd Kubernetes Port Config via Config Files OpenIM clustering design Kubernetes deploy concludes Open Source Business: From Community to Revenue The Art of Asking Questions in Open Source Communities Open Source Contribution Guidelines Cross Platform Compilation Github Actions Advanced Techniques Openim Devops Design GoReleaser: Automate your software releases Openim Multi Process Management About My Blog About My Hugo teaching Openkf Multi Architecture Image Prow Ecological Learning Openim Remote Work Culture Advanced Githook Design Openim Offline Deployment Design Read Openim Project Sealos Openim Source Code Project Management From Theory to Practice Stage Growth of Open Source Use Auto Gpt Use Go Tools Dlv Participating in This Project Kubernetes an Article to Get Started Quickly Start Here | cubxxw 分类 · CATEGORIES
Emerging Challenges and Trends in 2024
Xinwei Xiong · 2024-01-14 · via Xinwei Xiong (cubxxw) - AI, Open Source & Nomad Blog

[Xinwei Xiong Me] · January 14, 2024

10 min · 2002 words · EN |

Limitations of the model:

  • Deep learning
  • Pre-trained model
  • Large language model

The emergent power of large language models:

Link:

The Mystery of the Evolution of Large Language Models: Challenges and Controversies of Emergent Phenomenon_AI_Zhang Junlin_InfoQ Selected Articles

Changes in the characteristics and trends of large language models:

Big language understands human habits better than people.

  • Training with RLHF
  • Interact in the way humans are accustomed to

The development history of large language models:

  • There are more and more open source models, and the proportion is getting larger and larger.
  • There are still a lot of pre-trained models, but the proportion of fine-tuning is getting higher and higher.

How to learn large language models

  • Configuration of the model structure
  • Fine-tuning of large language models
  • skills

Train the model yourself

It doesn’t have to be just a single data, it can also be a mixture of data (including business documents or code provided by yourself)

Training data source:

When processing and preparing data for machine learning model training, it is important to ensure the quality, security, and deduplication of the data. Here are some key steps and methods to help you achieve this goal:

  1. Quality Filtering:
    • Ensure data accuracy: remove or correct any erroneous, incomplete or inaccurate data.
    • Ensure data consistency: Ensure that all data follows the same format and standards.
  2. Data Deduplication:
    • Identify and remove duplicate data: Use algorithms or tools to identify identical or highly similar data items and merge or delete them.
    • For text data, you can use hashing algorithms or content-based deduplication methods.
  3. Privacy Removal:
    • Ensure that the data does not contain any personally identifiable information (PII), such as name, address, phone number, etc.
    • In some cases, data desensitization techniques, such as anonymization or pseudo-anonymization, can be used to protect user privacy.
  4. Tokenization:
    • For text data, tokenization is the process of splitting continuous text into smaller units such as words, phrases, or characters.
    • Word segmentation methods depend on the grammatical and lexical structure of the specific language. For Chinese, a specific word segmentation tool may be needed because Chinese is a non-space separated language.

Decoder structure

“causal decoder” and “prefix decoder” are two different decoder structures that play an important role in processing sequence data, especially in text generation tasks. Here’s a comparison of the two decoders:

Causal Decoder

  1. Definition and Application:
    • The causal decoder, as used in the GPT family of models, is a one-way decoder.
    • When generating text, it only considers the context that has already been generated or given (i.e. it only sees the context on the left).
  2. Working Principle:
    • When processing each new word, the causal decoder only uses the previous words as context.
    • This model simulates the way humans generate natural language, which is to sequentially generate new information based on known information.
  3. Use:
    • Suitable for text generation tasks such as storytelling, automatic writing, chatbots, etc.
  4. Features:
    • Ensures that the generated text is coherent and logically follows the previous context.
    • Unable to look back or consider future vocabulary or sentence structure.

Prefix Decoder (prefix decoder)

  1. Definition and Application:
    • The prefix decoder is a decoder that can consider both the preceding and following contexts, similar to the masked language model (MLM) in BERT.
    • It can consider both prefix and suffix information in the sequence when processing data.
  2. Working Principle:
    • When processing each word, the prefix decoder uses the preceding word and some following placeholders or masks as context.
    • This method allows the decoder to take into account the structure of the entire sequence when generating a certain word.
  3. Use:
    • Commonly used for tasks that require two-way context understanding, such as text blank filling, sentence improvement, language model training, etc.
  4. Features:
    • Ability to take into account more comprehensive contextual information when generating text.
    • Better for understanding the structure and meaning of an entire sentence or paragraph.

Optimization of model structure

Model structure optimization has always been a fancy job. Excellent model structure design can greatly improve the efficiency of model parameters, and even the effect of small models can exceed that of large models. In this article, we take XLNet, ALBERT, and ELECTRA as examples for analysis. Although they can also be considered as work on pre-training task optimization and model lightweighting, given the strong innovation in model structure, we still analyze them in the model structure optimization section.

Fine-tuning

Factors to consider when fine-tuning:

  • Effect: Customization - local knowledge base search, question and answer in specific fields, etc.
  • Cost: training cost - graphics card and other costs (the United States now restricts Chinese graphics cards)

What data needs to be retained for fine-tuning?

(base) root@openim-System-Product-Name:/home/openim# nvidia-smi
Sat Jan 6 14:39:30 2024
+------------------------------------------------- -----------------------------------------------+
| NVIDIA-SMI 535.129.03 Driver Version: 535.129.03 CUDA Version: 12.2 |
|-----------------------------------------+------ ---------------+----------------------+
| GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|=========================================+======= ===============+======================|
| 0 NVIDIA GeForce RTX 4090 Off | 00000000:01:00.0 Off | Off |
| 0% 33C P8 17W / 450W | 33MiB / 24564MiB | 0% Default |
| | | N/A |
+----------------------------------------+------ ---------------+----------------------+
                                                                                         
+------------------------------------------------- -----------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|================================================== ======================================|
| 0 N/A N/A 2960548 G /usr/lib/xorg/Xorg 9MiB |
| 0 N/A N/A 2960714 G /usr/bin/gnome-shell 10MiB |
+------------------------------------------------- -----------------------------------------------+
  • ChatGpt parsing

    (base) root@openim-System-Product-Name:/home/openim# nvidia-smi
    Sat Jan 6 14:39:30 2024
    +------------------------------------------------- -----------------------------------------------+
    | NVIDIA-SMI 535.129.03 Driver Version: 535.129.03 CUDA Version: 12.2 |
    | (NVIDIA system management interface version) (Graphics card driver version) (CUDA version) |
    +----------------------------------------+------------- ----------+--------------------------+
    | GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC |
    | (GPU number and name) (persistence mode status) | (bus ID) (show activity or not) | (uncorrected volatile error check) |
    |Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. |
    | (Fan Speed) (Temperature) (Performance Status) (Power Usage/Cap) | (Video Memory Usage) | (GPU Utilization) (Compute Mode) |
    | | | MIG M. |
    | | | (MIG mode status) |
    +----------------------------------------+------ ---------------+----------------------+
    | 0 NVIDIA GeForce RTX 4090 Off | 00000000:01:00.0 Off | Off |
    | (GPU number) (GPU model) (persistence mode) | (bus ID) (show activity) | (volatile error checking) |
    | 0% 33C P8 17W / 450W | 33MiB / 24564MiB | 0% Default |
    | (Fan Speed) (Current Temperature) (Performance Status) (Current/Maximum Power) | (Current/Total Video Memory) | (GPU Utilization) (Compute Mode) |
    | | | N/A |
    +----------------------------------------+------ ---------------+----------------------+
    
    +------------------------------------------------- -----------------------------------------------+
    | Processes: |
    | (process list) |
    | GPU GI CI PID Type Process name GPU Memory |
    | (GPU number) (GI) (CI) (Process ID) (Type) (Process name) (GPU memory usage) |
    |================================================== ======================================|
    | 0 N/A N/A 2960548 G /usr/lib/xorg/Xorg 9MiB |
    | (GPU number) (N/A) (N/A) (Process ID) (Graphics process) (Process name) (Video memory usage) |
    | 0 N/A N/A 2960714 G /usr/bin/gnome-shell 10MiB |
    | (GPU number) (N/A) (N/A) (Process ID) (Graphics process) (Process name) (Video memory usage) |
    +------------------------------------------------- -----------------------------------------------+
    

Fine-tuning-Adapter:

The Adapter module is added to each layer of the pre-trained model. During fine-tuning, only the parameters of the Adapter are updated. The Adapter is 2 linear layers, which reduces the dimension now and then increases the dimension. Fine-tuning for different tasks.

Finetuning LLMs Efficiently with Adapters

Fine-tuning-lora:

Practical Tips for Finetuning LLMs Using LoRA (Low-Rank Adaptation)

Fine-tuning-qlora:

Compare lora:

[LoRA and QLoRA- Effective methods to Fine-tune your LLMs in detail.](https://medium.com/@levxn/lora-and-qlora-effective-methods-to-fine-tune-your-llms-in -detail-6e56a2a13f3c)

github:

GitHub - artidoro/qlora: QLoRA: Efficient Finetuning of Quantized LLMs

blog:

QLoRA: Efficient Finetuning of Quantized LLMs

LangChain-AI

https://github.com/langchain-ai/langchain

Architectural Design:

Untitled

LangChain-Core is the core function

LangChain Hub:

LangSmith

Langsmith’s invite code needs to be obtained from others, github issue or mail

LangChain Chat:

https://chat.langchain.com/

AI Agent

Although everyone from Bill Gates to OpenAI is talking about AI Agent, it does not yet have a precise definition. At present, the consensus reached in the industry about AI Agent mainly comes from a blog post by OpenAI. It defines AI Agent as: a large language model serves as the brain. Agent has the ability to perceive, remember, plan and use tools, and can automatically achieve the user’s complex goals. This actually lays the basic framework of AI Agent.

Untitled

Wall-Facing Intelligence (ModelBest) A large model full-process automated software development framework OpenBME/ChatDev jointly developed with the NLP Laboratory of Tsinghua University

https://github.com/OpenBMB/ChatDev

https://chatdev.toscl.com/zh

Install the plugin using:

Untitled

Classic projects of AI Agent:

https://github.com/Significant-Gravitas/AutoGPT

Build a question and answer system using large models

Traditional search systems are based on keyword matching. When facing business scenarios such as game guides, technical maps, and knowledge bases, they lack the ability to understand user questions and secondary processing of answers.

Large Language Model (LLM), through its ability to understand and generate natural language, can figure out user intentions, summarize and integrate original knowledge points, and generate more appropriate answers. About basic ideas, verification effects and expansion directions

Large model building question and answer model:

  1. Use fine-tuning method (MedGPT, medical large model, ChatMed)
  2. Use fine-tuning combined with plug-in knowledge base (large legal model, ChatLaw)
  3. Leverage the capabilities of general large models and use plug-in knowledge bases.

Excellent open source projects:

https://github.com/chatchat-space/Langchain-Chatchat

https://github.com/MetaGLM/FinGLM

https://github.com/lm-sys/FastChat

Requirements: For the same type of question and answer system, similar to the OpenKF project http://github.com/OpenIMSDK/openkf Implement a local knowledge base (the underlying knowledge base LLM model can be replaced or even connected to the API):

![Untitled](https://prod-files-secure.s3.us-west-2.amazonaws.com/75a5484a-0cd7-4657-9986-f815c6264948/4ec213b0-dac3-48fa-a077-26d5486eab48/Untitled . png)

To create a Domain-specific Knowledge Question and Answer system, the specific requirements are:

  • Interact with users through natural language question and answer, supporting both Chinese and English.
  • Understand users’ different forms of questions and find matching answers. Secondary processing of answers can be performed, such as deduplication and aggregation of multiple associated knowledge points.
  • Support context. Some questions may be complex or cannot be covered by original knowledge and require information to be extracted from historical conversations.
  • precise. Don’t appear [plausible]Or meaningless](https://link.zhihu.com/?target=https%3A//www.entrepreneur.com/growth-strategies/the-advantages-and-disadvantages-of-chatgpt/450268 )’s answer. (Especially important for the financial industry)

Some questions don’t necessarily need to be answered with large models, either. For some questions, such as computer-related questions and questions with reasoning, the output of the model is prone to problems. We use the method of directly building templates to answer, or use the FAQ question and answer system.

FAQ question and answer system project: https://github.com/wzzzd/FAQ_system

Build a FAQ intelligent question and answer system

resource:

Organize open source Chinese language models, focusing on smaller models that can be deployed privately and have lower training costs, including base models, fine-tuning and applications in vertical fields, data sets and tutorials, etc.

https://github.com/HqWu-HITCS/Awesome-Chinese-LLM

FAQ

  • Core competitiveness under the big language model
  • Training data for large language models (including code OR issue)
  • The impact of the construction format of the knowledge base on accuracy: There is no standardized paradigm for data analysis. What is defined is a collection of questions, and then starts from the structure of the data (slices and document blocks)
  • Recall rate questions: Record questions and recall answers in one-to-one correspondence;
  • Large model hallucination phenomenon: Do not answer unfamiliar and uncertain questions, process from the prompt words, and return to recall
  • Multiple knowledge bases of the enterprise: How to choose the specified knowledge base to answer the large model, and use the large model to do fine-tuning and classification tasks
  • Special data (picture) processing of PDF, and processing of redundant information