Lesson 6 / 14
Open Weights, Licensing, and Self-Hosting
Open weights permit some forms of local deployment, but license terms and operational responsibilities vary.
By the end of this lesson, you will be able to:
- Distinguish open weights from open-source code and unrestricted rights.
- Identify license and security checks for a proposed deployment.
- Explain the engineering work required to run a model locally.
1. The files are not the permission
Downloading a weight file lets compatible software load the learned parameters, but the right to use, modify or redistribute it comes from the specific license. A repository may publish model weights while withholding training data, preprocessing scripts or full training code. That is why 'open-weight' and 'open-source' are not interchangeable labels.
Licenses can differ between releases of the same model family. Some allow broad commercial use; others impose conditions concerning organization size, redistribution, attribution, acceptable uses or derivative models. Never infer permissions from an attractive model card headline. Preserve a dated copy or link to the exact license associated with the identifier you deploy.
2. A practical licensing review
Record the publisher, model identifier, version or checkpoint, repository location and license revision. Read the grant of rights and restrictions: commercial deployment, fine-tuning, distributing copies, providing outputs as a service and sharing modified weights can involve different conditions. Then check whether the application must display notices, preserve attribution or comply with a separate acceptable-use policy.
If a project has multiple weights, quantizations, adapters or merged checkpoints, verify their individual origins. Third-party conversions can carry additional dependencies. For a commercial product with unclear terms, pause deployment and obtain qualified legal review rather than relying on a summary generated by AI. Legal interpretations here are educational, not legal advice.
3. Running the model is an engineering task
Choose an inference runtime compatible with the model architecture and check memory requirements for the selected precision and context length. Quantization reduces the storage and memory footprint, sometimes at the cost of quality on particular tasks. Test it with your own examples. A model that loads successfully is not necessarily fast enough for concurrent users.
You also need authenticated endpoints, encrypted traffic, secret storage, access logs, request limits, monitoring, backups where applicable and an update process. 'On our own server' still leaks data if logs are exposed, prompts are retained unnecessarily or operators can access content without authorization. Privacy depends on the entire system, not just the weight file.
4. How to decide whether to self-host
Start with your non-negotiables: where data may travel, what uptime is required, who responds to incidents, how much throughput you need and what license rights are necessary. Compare three options: a managed API, hosted inference of the same open-weight model and operation on your infrastructure. For each, estimate total cost and responsibilities. A managed open-weight endpoint might satisfy data-control needs with less operational burden, depending on its terms.
Worked example
Worked example: an internal document assistant
A ten-person firm wants answers from internal procedure manuals. The documents are confidential but are not allowed outside the firm's approved vendors.
- Classify the documents and list authorized processing locations. Do not upload sample manuals to an unapproved service.
- Check the exact candidate license, weight size, runtime compatibility and whether answers can cite retrieved document passages.
- Test an approved managed option against a local pilot using redacted documents. Record quality, access-control failures, setup work and operating cost.
The choice depends on approved data handling, measured quality and the team's ability to maintain the deployment. Simply downloading weights does not solve confidentiality or reliability.
Check your understanding
You can download a model's weights. What must you still verify before commercial deployment?
Apply what you learned
Deployment decision
- List the data sensitivity, expected usage, and operational skills available.
Discuss this lesson
Read discussions freely. A free account is needed only to post or reply.
Open forum →