Large language model
lastmod 2026-10-01created 2024-04-22127 edits
(For the machine learning method based on generating understandable rules, see Logic learning machine.)
A large language model (LLM), also called a giant language model, is a language model consisting of an artificial neural network with a huge number of parameters (usually billions of weights or more). It is trained on a considerable amount of unlabeled text using self-supervised or semi-self-supervised learning. LLMs emerged around 2018 and perform a wide range of tasks. The focus of natural language processing research has shifted away from the earlier training paradigm of specialized supervised models for specific tasks.
Large language models (LLMs) are an enabler of AI chatbot technology and one of the most talked-about topics. How large language models (LLMs) work is broadly divided into three parts: tokenization, transformer models, and prompts. Tokenization is part of natural language processing and refers to converting ordinary human language into sequences that low-level machine systems (LLMS) can understand; this involves assigning numeric values to sections and encoding them for fast analysis. It is like an AI version of phonetics, and the goal of tokenization is to create context vectors, which act like a training guide or formula for the AI to predict sentence structure. The more language is studied and the better it is understood how sentences are constructed, the more accurate the prediction of the next word in a particular type of sentence becomes. This makes it possible to develop models that reproduce the various communication styles people use online.
A transformer model is a type of neural network that examines sequential data to identify relevant patterns of which words are likely to follow each other, and it consists of layers that each perform different analyses to decide which words are compatible. These models do not learn language; they rely on algorithms to understand words written by people and are trained, for example, to write a standard article about coffee by being given hipster coffee blogs. This transformer model is the basis of large language model (LLM) language generation.
A prompt is the information developers give a large language model (LLM) to analyze and tokenize; prompts are essentially training data that helps the LLM across various use cases. The more accurate the prompts it receives, the better the LLM can predict the next word and construct accurate sentences. Therefore, choosing appropriate prompts is important for properly training deep learning AI.
Categories
- Korean: 인공 일반 지능 (Artificial general intelligence; AGI)
- Language model - the parent category, Korean: 언어 모델 (LM)
- Intelligent agent (AI Agent)
- Generative Pre-trained Transformer#Store - collection of recommended models by field in the GPTs store
- Artificial intelligence#Projects - collection of recommended AI-related online tools
- Retrieval-Augmented Generation (RAG; Korean: 검색 증강 생성) - an architectural approach that brings data into the context of a large language model (LLM) to improve relevance
- Vision language action model (VLA)
- Groundedness Check - checks the reliability of answers generated by an LLM (to address LLM hallucination)
- Vibe coding
- llms.txt - a proposed standard for giving LLMs information on how to use a website
- LLaMA - a 65b-parameter LLM released by Meta
- Why I'm cancelling my ChatGPT Plus subscription? - YouTube - Nomad Coders
- Qwen-Image - an image generation model with native text rendering
- Qwen-Image-Edit - a dedicated image editing model released
AI-friendly GUI frameworks
- Prompt-Kit
- Streamlit - an easy web-building tool for data scientists
- Gradio
Korean open-source LLMs
- NomaDamas/awesome-korean-llm: Awesome list of Korean Large Language Models - an awesome list collecting information on Korean open-source LLMs.
- rtzr/Awesome-Korean-Speech-Recognition: List of Korean speech recognition STT APIs. Performance benchmarks for each. - Awesome Korean speech recognition
- KoDarkBench: Which K-LLM is the darkest? | GeekNews
- Polyglot-Ko - https://github.com/EleutherAI/polyglot
- KoAlpaca - https://github.com/Beomi/KoAlpaca
- KuLLM - https://github.com/nlpai-lab/KULLM
- KORani - https://github.com/krafton-ai/KORani
- K(G)OAT - https://github.com/Marker-Inc-Korea/K-G-OAT
- KoVicuna - https://github.com/melodysdreamj/KoVicuna
- Kollama - https://huggingface.co/beomi/kollama-33b
- Llama-2-Ko - https://huggingface.co/beomi/llama-2-ko-7b
- komt - https://github.com/davidkim205/komt
- KoRMKV - https://huggingface.co/beomi/KoRWKV-1.5B
- KoAlpaca-KoRMKV - https://huggingface.co/beomi/KoAlpaca-KoRWKV-6B
- KoGPT - https://github.com/kakaobrain/kogpt
- KoGPT2 - https://github.com/SKT-AI/KoGPT2
LLM API price-per-token comparison
Numbers every LLM developer should know
A summary of numbers that matter when using LLMs.
- Adding "be concise" to a prompt can save 40–90% of the cost.
- GPT-3.5 Turbo is 50 times cheaper than GPT-4.
- Using OpenAI embeddings for vector search is 20 times cheaper than GPT-3.5 Turbo.
- Training a LLaMa-class LLM costs a million dollars (about 1.3 billion won).
- Memory size per GPU - V100: 16GB, A10G: 24GB, A100: 40/80GB H100: 80GB
- You usually need twice the model size in memory - 7B = 14GB
- Embedding models usually use 1GB of memory or less
- Batching LLM requests can make them more than 10 times faster.
- A 13B model needs about 1MB per token, so batching requests greatly increases memory requirements.
Language Model Stack
Almost every company Sequoia has invested in is bringing LLMs like ChatGPT into its products. Based on a survey of companies in its network, Sequoia outlines two AI stacks
LLM API Stack
- LLM APIs : OpenAI, Anthropic, Cohere
- Vector DB: AWS, pgvector, Pinecone, Qdrant, Weaviate, Chroma
- Frameworks: LangChain, LlamaIndex, Anarchy
- Text-To-Speech: Resemble.AI, ElevenLabs, Wellsaid
- Monitoring: DISTYL, Guardrails, Helicone, HoveHive, Autoblocks
Custom Model Training / Tuning Stack
- Compute: AWS, Azure, Google Cloud, Foundary, Lamba, MosaicML, Modal, Fireworks.ai
- Model Hub: Hugging Face, Replicate
- Frameworks: PyTorch, TensorFlow
- Experimentation: Weights & Biases
- Monitoring/Observability: Robust Intelligence, Gantry, Arthur, arise, Whylabs
- Hosting: Replicate, HuggingFace
Key points
- Most companies are building LLMs into their products
- Focus on language model APIs, retrieval, and orchestration. Open-source use is growing
- Companies want to customize language models to fit their own context
- The LLM API stack and the model training stack look separate now, but they will gradually merge
- The stack is becoming more and more developer-friendly
- For language models to be fully adopted, their trustworthiness (quality, data privacy, security) must improve
- Language model applications will become increasingly multimodal
- It is still very early days
How to fine-tune
Fine-tuning with LoRA and Adapter using Lit-Parrot, an open-source implementation based on nanoGPT
- Supports LLMs such as StableLM, Pythia, and RedPajama
- Uses FlashAttention from PyTorch
- The example tunes the RedPajama-INCITE model on Databricks' Dolly 2.0 instruction dataset
Text embeddings: Parquet and Polars
Text embeddings are vectors generated by large language models, a way of representing words, sentences, and documents numerically
14 things to keep in mind when writing code with LLMs
- 14 things to keep in mind when writing code with LLMs | GeekNews
- [Original] Here’s how I use LLMs to help me write code
- Set reasonable expectations (Set reasonable expectations)
- Consider the training data cut-off date (Account for training cut-off dates)
- The importance of context (Context is king)
- Ask for multiple options (Ask them for options)
- Give specific instructions (Tell them exactly what to do)
- Always test the code it writes (You have to test what it writes!)
- Keep the interaction conversational (Remember it’s a conversation)
- Use tools that can run code (Use tools that can run the code for you)
- Learn through ‘vibe coding’ (Vibe-coding is a great way to learn)
- A detailed example with Claude Code (A detailed example using Claude Code)
- The need for human intervention (Be ready for the human to take over)
- Maximizing development speed (The biggest advantage is speed of development)
- Amplifying existing expertise (LLMs amplify existing expertise)
- Bonus: answering questions about codebases (Bonus: answering questions about codebases)
How to improve recommender systems and search in the age of LLMs
See Recommender system#How to improve recommender systems and search in the age of LLMs.
What is the best LLM you can use on consumer hardware?
Looking for a model capable of basic conversation on a 5060ti + 16GB VRAM. Ideally fast, running in near real time
Summary of answers
- Various 8B–14B and 30B parameter models run efficiently on 16GB VRAM; Qwen3, DeepSeek-R1, Mistral, Gemma3 and others are recommended
- Running LLMs locally has advantages in performance, cost, and privacy, but actual performance and model fit require individual experimentation and tuning
- Tips for optimizing hardware use, such as model file size, quantization level (Q4–Q6, etc.), and splitting loading across GPU and RAM, are actively shared
- Many tools exist, such as Ollama, LM Studio, llama.cpp, and OpenWebUI, each with pros and cons in accessibility, flexibility, and ease of model management
- Community information (e.g. Reddit LocalLLaMA) is useful for the latest news and practical tips, but there is also a lot of exaggeration and misinformation, so be careful
Recommended LLMs and usage tips
- Qwen3: available in various parameter sizes such as 8B/14B/30B; the 8B–14B models run comfortably on 16GB VRAM. Strong reasoning performance, and thanks to the MoE (Expert Mixture) architecture some models can run even at large sizes with RAM offloading
- DeepSeek-R1-0528-Qwen3-8B: regarded as having excellent reasoning performance among recent 8B models. At 8B, fits in 4GB–8GB VRAM with Q4–Q6 quantization
- Mistral Small 3.1: the 14B or 24B model is recommended; good conversation quality and relatively little censorship. Notably, it supports image input
- Gemma3: a Google model, strong at intuitive conversation. However, some say it has a strong HR-like tendency and adds many disclaimers. Hallucination is also relatively frequent
- Devstral: a large model based on Mistral. 30B and above can be slow on 16GB VRAM
- Dolphin, Abliterated: less-censored versions, useful for non-routine situations
Optimizing hardware and runtime environment
- Quantization settings: the lower the quantization level, such as Q4, Q5, Q6, the less VRAM is used (Q4 ≒ parameters/2, Q6 ≒ parameters*0.75). Watch out for quality degradation, though
- Estimating VRAM capacity: e.g. 8B Q4 needs 4GB, 14B Q4 needs 7GB, and 30B Q4 needs about 15GB of VRAM
- RAM offloading: when VRAM is short, some layers can be offloaded to CPU memory. Expect a slowdown, though
- KV cache quantization: when enlarging the context window, compressing the cache to around q4 is recommended
Tools and frontends
- llama.cpp: runs fast and flexibly on many platforms. Supports a REST API and a simple React frontend. Can load a model split across VRAM and RAM
- Ollama: easy installation and model switching, easy integration with GUI frontends. However, it has limits on support for the latest models and context size
- LM Studio: convenient model management in a GUI. Predicts whether a model fits in VRAM
- OpenWebUI: frontend only. Requires a backend such as llama.cpp or vllm. Can manage and test multiple models at once
- KoboldCPP, SillyTavern: frontends specialized for role-playing/storytelling/games
Community and practical information
- Reddit LocalLLaMA, HuggingFace, Discord: news on the latest models, usage, benchmarks, and setup know-how are actively shared. However, watch out for misinformation and groupthink
- Benchmark sites: livebench.ai, aider.chat, and others provide scores and rankings for the latest models
Use cases and real experience
- Privacy, cost savings: local models are more useful than the cloud for sensitive data/privacy concerns or repeated use
- Freedom to experiment and tune: more flexible than API models for domain-specific fine-tuning, sampling strategies, prompt engineering, and so on
- Applications: many practical examples such as RAG (retrieval-augmented generation), local database integration, agent automation, and offline assistants
Frequently asked questions and tips
- Estimating model size: number of parameters × bits (quantization)/8 = approximate VRAM requirement (GB). Overhead and the context window also need to be considered
- Characteristics by model: Qwen3 for reasoning/coding, Gemma3 for intuition/conversation, Mistral with less censorship, Dolphin/abliterated as uncensored versions, etc.
- Performance comparison: running your own benchmarks and custom tests to find the model that suits you is recommended
Conclusion and practical advice
- There is no "best model"; the best approach is to try a variety of recent 8B–14B models such as Qwen3, Mistral, and Gemma3 depending on your hardware, use case, and preferences
- Matching specs such as model file size, quantization, and context size is very important, so it is effective to test several models yourself and make use of community tips
See also
- ChatGPT - that thing from OpenAI!
- Natural language processing (NLP)
- Logic learning machine (LLM in Machine Learning)
- Large Multimodal Model (LMM)
- ForeverVM - a sandbox for safely running and maintaining AI-generated code
- RubyLLM - working with AI the Ruby way
- MCP
- GDM Format (arXiv 2406.13121)
- Open Responses - an open specification for compatibility between LLMs
- CodeSpeak
- Korean: 컨텍스트 부패 (Context Rot)
Favorite site
- Large language model - Wikipedia
- Using large language models effectively | GeekNews
- [Original] Using Large Language Models Effectively
- Lessons gathered from 10 founders/executives who have built AI features on LLMs
- GitHub Copilot, Canva Magic Write, Sourcegraph Cody, Neeva AI,..
- Involve users in co-creation
- Start with low-risk tasks
- Add a trust and safety layer
- Make use of embeddings
- Give the model more context
- Enhance the model with new tools
- Use a hybrid approach
- Train smaller models with larger models
- [Original] Building LLM applications for production
- Building something cool with LLMs is easy, but making it production-grade is very hard
- An article examining the main challenges to solve in productizing LLM applications, how to integrate multiple tasks into a control flow and use tools, and promising use cases
Tutorials
- [Recommended] Introduction to natural language processing with deep learning - WikiDocs
- CS146S: The Modern Software Developer (Korean) | GeekNews
- [Original] CS146S Korean Edition | The Modern Software Developer
- The official Korean version of Stanford's CS146S course
Guide
- LLM prompt tuning playbook | GeekNews
- [Original] varungodbole/prompt-tuning-playbook: A playbook for effectively prompting post-trained LLMs
- Who is this document for?
- A document for people who want to improve their prompting of Post-Trained LLMs
- Aimed at people with basic experience using LLMs, even if they lack a technical background
- First half: provides an intuitive understanding of post-training and prompting
- Second half: provides a concrete prompt-writing procedure and tips
- Writing LLM prompts is empirical work that requires continuous learning and revision
- This document aims to share effective prompting strategies systematically
- Written with a focus on post-trained models such as Gemini, but applicable to other models too
- [Original] Fast LLM Inference From Scratch
- [Original] How To Scale Your Model
- [Original] Deep Dive into LLMs like ChatGPT - YouTube
- [Original] Github - arman-bd/guppylm
Article
- [Original] AI Blindspots | AI Blindspots
- Stop Digging → hard to change direction when a problem occurs
- Use Static Types → static types need to be set up
- Black Box Testing → relies too much on implementation details
- Use MCP Servers → MCP server setup and safety issues
- Preparatory Refactoring → may perform unnecessary refactoring
- Mise en Place → problems occur when environment setup fails
- Stateless Tools → problems occur with state-dependent tools
- Respect the Spec → high chance of violating the spec
- Bulldozer Method → performs too much repetitive work
- Memento → problems from poor understanding of context
- Requirements, not Solutions → requirements need to be clarified
- Scientific Debugging → problems occur with guess-based fixes
- Use Automatic Code Formatting → inconsistent code style
- The Tail Wagging the Dog → fixates on trivial issues rather than important work
- Keep Files Small → problems occur when editing large files
- Know Your Limits → the model lacks awareness of its own limits
- Read the Docs → errors with information outside its trained knowledge
- Culture Eats Strategy → lack of code style consistency
- Walking Skeleton → a minimal working system needs to come first
- Rule of Three → refactoring needed when code is duplicated
- [Original] LLM function calls don't scale; code orchestration is simpler, more effective. | jngiam
- Having the LLM process the entire result of a tool call is slow, costly, and bad for scaling
- Instead, proposes having the LLM orchestrate so that structured data is processed by code based on output schemas
- This approach suits large-scale data processing through function chaining in code and variable-based memory management
- Data processing based on code execution offers better accuracy and scalability because the LLM does not reproduce the data itself
- Building a secure AI runtime environment is emerging as a new challenge, and a persistent, stateful execution environment is needed
- [Original] https://ml-site.cdn-apple.com/papers/the-illusion-of-thinking.pdf
- Large Reasoning Models (LRMs) have shown some performance gains in solving complex problems, but their fundamental limits and scalability problems are clearly revealed
- LRMs show their reasoning process collapsing sharply as problem difficulty rises, and analysis shows a paradoxical phenomenon in which reasoning effort (token usage) actually decreases past a critical point
- Comparing standard LLMs and LRMs under the same compute budget, standard LLMs do better at low difficulty, LRMs have the edge at medium difficulty, and both fail at high difficulty
- LRMs show decisive limits in explicit algorithmic reasoning and consistent thought processes, behaving differently or inconsistently depending on the puzzle environment
- As this research confirms the reliability problems and scalability limits of current reasoning models, designing next-generation AI requires precise evaluation and structural improvement
- Apple's paper "The Illusion of Thinking: Understanding the Strengths and Limitations of Reasoning Models via the Lens of Problem Complexity"
- [Original] LLM Embeddings Explained: A Visual and Intuitive Guide - a Hugging Face Space by hesamation
- Embeddings are the semantic backbone of LLMs, converting text into numeric vectors so the model can understand it
- Embeddings have evolved through many changes, from statistical techniques such as count-based methods and TF-IDF to modern approaches such as Word2Vec, BERT, and the GPT family
- Good embeddings balance preserving semantic similarity between words with controlling the number of dimensions, and in LLMs they are trained together, optimized for the training data and task
- Explains representative embedding methods such as TF-IDF, Word2Vec, and BERT with examples and visualizations; in particular, LLM embeddings convert input tokens into high-dimensional vectors and then update them layer by layer according to context
- Guides you to an intuitive understanding of how embeddings actually work through hands-on code and visuals such as the Torch embedding layer and graph analysis of embedding vectors
- [Original] A timeline of LLM Context Windows, Over the past 5 years. (done right this time) : r/LocalLLaMA
- Over 5 years, companies have competitively grown context window sizes from 2K to 2M
- However, many people point out that the context window size stated for a model differs from the size that is actually usable
- Many report experiences quite different from what was advertised when comparing the real performance of major models such as Gemini 2.5 Pro, GPT-5, Claude, Qwen, and Llama
- The skeptical view that “large context is meaningful, but in practice it only works properly around 4–8k” clashes with positive accounts that “it is actually usable up to hundreds of thousands of tokens”
- The practical-use timeline is 1k→2k→4k→8k→8k→8k→32k→40k, with only Gemini 2.5 Pro capable of 80k
- underdrawing is a method that first uses a deterministic tool to create an underdrawing image containing the positions of numbers and text, then has an image generation model apply a visual style on top of it to improve accuracy
- In a task of arranging 50 stepping stones in a spiral and numbering them 1 to 50, Gemini 3 Pro and ChatGPT Images 2 could not reliably get the numbers and order right without an underdrawing
- Given the same task together with an underdrawing, Gemini 3.0 Pro produced a result with the correct numbers, button count and order, and spiral shape
- It can be implemented by using a tool such as SVG/HTML to place numbers and text at the desired positions and orientations, exporting it as an image, and then feeding that image together with a text prompt into a multimodal image model
- This approach is not perfect every time, but for image generation where text and number placement matters, it lets you split the work between deterministic placement and the generative model's visual expressiveness
References
-
What_Weve_Learned_From_A_Year_of_Building_with_LLMs_-_GeekNews.pdf ↩