Concepts / Building and Using Large Language Models

Building and Using Large Language Models

In the local setup, the model runs where the user is, so the prompt does not need to leave the device to reach it.

  • Programming

A Staff Question With Two Possible Answers

Suppose your organization wants a language model to help staff answer questions. You could rely on a broad, general-purpose service that handles almost any topic, or you could build a model shaped around your own field and your own data. The second path is more work, so the reason to take it has to be concrete. Building a custom model offers three main advantages: stronger results on a narrow job, better control over sensitive information, and the ability to run the model close to where it is used. Each advantage answers a different practical concern.

What do you think happens?

A company holds customer records it does not want to send to an outside provider. Which of the three advantages most directly addresses that concern?

  • Stronger results on a narrow job

  • Data privacy

  • Lower latency on a local device

  • Developer control over updates

Reveal answer
Answer:

Data privacy

Keeping sensitive data in-house supports privacy, which matters when companies do not want to share their data with third-party providers. The other advantages concern performance, deployment speed and cost, and who decides how the model changes.

Tracing a Prompt Through Each Setup

To see why deployment matters, follow a single prompt through two setups. In the server-hosted setup, the user's request travels over a network to a remote server, the model runs there, and the response travels back over the network. The user reaches the model only through that connection.

A smaller custom model can instead be deployed directly on a customer device such as a laptop or smartphone. The source notes that companies such as Apple are currently exploring this kind of deployment. In the local setup, the model runs where the user is, so the prompt does not need to leave the device to reach it. The diagram below traces both paths and marks the network hops that disappear when the model runs locally.

User promptUser promptNetwork trip toserverModel runs on deviceRemote server runsmodelResponse shownlocallyNetwork trip backsendsdeliversreturnspasses toproduces
When a user sends a prompt, which steps does the request take in the server-hosted setup versus the on-device setup, and which of those steps disappear locally?

What Makes a Narrow Model Stronger

A general-purpose model is designed to be useful across a wide range of requests, from writing poetry to summarizing a legal memo. A custom-built model is tailored for a particular task or domain. The central claim of this part of the material is that, within that task or domain, a tailored model can outperform a general-purpose one. Being narrower is not a weakness. Focusing the model on one area is what allows it to do well there.

The reason lies in what the model is built to do. In the source's examples, the purpose is defined before the model is built, and that definition shapes what the model is trained to do. BloombergGPT is specialized for finance. LLMs tailored for medical question answering are built to handle questions in the medical domain. A model with a clearly defined target is aimed at one kind of work, while a general-purpose model is aimed at many kinds at once.

Wide range ofrequestsOne task or domainWriting poetryPurpose definedbefore buildingSummarizing legalmemosFinance or medicalquestions
How do a general-purpose model and a custom domain model differ in what they are built to handle?

A Worked Scenario: Choosing a Path

Worked example

Deciding Between a General Service and a Custom Model

A law-related organization wants staff to get quick answers about its own internal procedures. Its procedures are specialized, and its documents are confidential. Which advantages of a custom model apply, and what should the decision depend on?

  1. 1
    Identify the task

    The job is narrow: answering questions about one organization's procedures. A general-purpose model covers many topics, but this task sits inside one defined domain.

  2. 2
    Check the performance advantage

    A model tailored to the domain can outperform a general-purpose model within it, so specialization is relevant here.

  3. 3
    Check the privacy concern

    The documents are confidential. Sending each request to an outside provider means the request and its contents leave the organization's control, which may be enough to rule out that service.

  4. 4
    Check the deployment and control factors

    If staff need answers on devices with a smaller custom model, local deployment may reduce latency and server costs. The organization also gains control over when the model is updated and modified.

  5. 5
    Weigh the extra work

    Building a custom model is more work. The organization should take that path only if these concrete reasons outweigh the effort.

Result

The custom path is justified here by specialization and privacy, with deployment and update control as additional reasons. The decision rests on concrete needs, not on the appeal of building a model.

Keeping Sensitive Data Inside the Company

The second advantage concerns data privacy. When an organization sends a request to a model run by an outside provider, the request and its contents leave the organization's control. Many organizations hold information they do not want to disclose, such as customer records, internal strategy documents, or patient details. The source points to third-party providers such as OpenAI as an example, where confidentiality may lead companies to prefer not to share their sensitive data.

A custom-built model changes this picture because it can be developed and run under the organization's own arrangements. Sensitive material can stay inside the company rather than being passed to a third party for every request. This is why data privacy is listed as a distinct advantage, separate from performance. A model can perform well and still be unsuitable if the organization cannot keep its data under its own control.

Latency and Server Costs on the Device

The third advantage follows from a practical feature of smaller custom models. Because they are small enough to be developed for deployment on customer devices, they can run directly on laptops and smartphones. Local deployment means the model runs where the user is, rather than only on a remote server reached over a network.

The source ties local implementation to two benefits. First, it can significantly decrease latency, which is the delay between a request and its response. Second, it reduces server-related costs, because the organization does not need to supply as much server capacity to handle the same work. The source states these as effects of local implementation without promising particular numbers. The advantage is therefore a direction of improvement whose size depends on the situation.

Who Controls Updates

The last advantage concerns who decides how the model evolves. The source states that custom LLMs give developers complete autonomy, which allows them to control updates and modifications to the model as needed. With a model the team builds and maintains, the team chooses when to change it, what to change, and how to respond when the domain or the data shifts.

This is a different relationship from depending on a service whose behavior is set by its provider. In that arrangement, the application's behavior follows the provider's decisions. The timeline below compares where the decision sits in each case.

Developer decideschangeProvider setsservice behaviorTeam chooses timingApplication followsproviderUpdate applied toapplicationthenthenthen
When a change is made to the model, who decides it, and at what point can the developer choose or delay it?

Mistakes to Avoid When Judging Custom Models

  • Common mistake

    Assuming a narrower model must be weaker

    What it looks like

    Dismissing a finance-focused model because it cannot write poetry.

    Why it fails

    The source states that focusing on one area is what lets the model do well there. Narrowness is the design choice that enables strong domain results.

    Do this instead

    Ask how well the model performs on the task you actually need, rather than how many topics it covers.

  • Common mistake

    Treating privacy and performance as the same benefit

    What it looks like

    Choosing a custom model only because it is more accurate, and overlooking that the data would still need to leave the organization.

    Why it fails

    The source lists data privacy as a distinct advantage, separate from performance.

    Do this instead

    Evaluate performance and data handling as separate questions before deciding.

  • Common mistake

    Believing local deployment always lowers latency and cost by a fixed amount

    What it looks like

    Promising a specific percentage reduction in response delay before any measurement.

    Why it fails

    The source says local implementation can significantly decrease latency and reduce server costs, but it does not promise particular numbers.

    Do this instead

    Describe the benefit as a direction of improvement and measure it in the actual deployment.

  • Common mistake

    Assuming building a custom model is worthwhile without a concrete reason, since the source notes the second path is more work

Practice: Matching Benefits to Concerns

MEDIUM

An organization is considering a custom model for three reasons: its staff need answers about one specialized field, it cannot send its internal documents to an outside service, and it wants to decide for itself when the model changes. For each reason, name the advantage it corresponds to, and explain in one sentence why a general-purpose hosted service would be a weaker fit for that reason.

Hints
  • Match each concern to one of the three advantages: stronger results on a narrow job, data privacy, or local deployment with update control.
  • The source ties update control to developers having complete autonomy over updates and modifications.
  • Think about who holds the data and who sets the model's behavior in a hosted service.

Key Takeaways

  • A custom-built LLM is tailored to a specific task or domain, and within that area it can outperform a general-purpose LLM because its purpose is defined before it is built.
  • Keeping sensitive data in-house supports privacy, which matters when companies do not want to share data with third-party providers.
  • Smaller custom models can run on devices such as laptops and smartphones, which can significantly decrease latency and reduce server-related costs.
  • Developers of custom LLMs can control updates and modifications as needed, which is different from relying on a provider's service behavior.
  • The three advantages address different concerns, so each should be weighed on its own before choosing to build a custom model.

Related concepts

More concepts starting with B