Skip to content

Language models, retrieval, prompting, and language adaptation · Autoregressive and open-weight model families · LNG034 · Model

GPT-4 publicly documented family

Documents a large multimodal model that accepts text and, in the report, images, and produces text. It is included as a historically influential model family while keeping the report's disclosure limits explicit.

Explained here Component demo, not a trained model CodeSplash's own run

In CodeSplash

Documented in the Academy only. There's no Set up button.

Availability
Explained here
Code example
Component demo, not a trained model
Who ran it
CodeSplash's own run
CodeSplash's run
The reference's example ran in Python and R here, and they agree.
The reference's record
Python: The chapter's authors report running it; there is no record for this entry alone. R: Reviewed but not run: R wasn't available to the reference's authors.

Purpose

Documents a large multimodal model that accepts text and, in the report, images, and produces text. It is included as a historically influential model family while keeping the report's disclosure limits explicit.

Question / objective

What can be established from a closed model's documented behavior without inferring its undisclosed internals?

Architecture / computational structure

The public report identifies a multimodal text-output model but withholds architecture, parameter count, and substantial training details. Treat learned weights as inaccessible; only documented interface controls are user-settable.

Assumptions

Outputs may hallucinate, vary with prompts, or change across deployed versions.

Formula / computational definition

p(y∣x)=∏tp(yt∣y<t,x)(generic output factorization, not disclosed internals).p(y\mid x)=\prod_t p(y_t\mid y_{<t},x)\qquad\text{(generic output factorization, not disclosed internals).}

A generic conditional factorization p(y|x)=product_t p(y_t|y_<t,x) describes text output, but the report does not disclose enough architecture, dataset, or optimization detail to reproduce the system. This factorization is not a claimed internal blueprint.

Parameters and notation

Learned parameters: identified in the architecture subsection. Hyperparameters, design and inference choices: User-exposed controls and context limits depend on the actual available product/model version; undisclosed parameter counts, expert structures, and training recipes must not be inferred from branding.

Fitting, fine-tuning, and adaptation

Do not claim local weight adaptation or exact reproduction. If a provider offers adaptation for a particular version, follow its current documentation and validate independently; otherwise use prompting or retrieval. Freeze evaluation prompts/version identifiers where possible and reassess behavior after provider updates.

How to use and calibrate

Use version-pinned task suites, repeated trials when appropriate, human factuality review, and latency/cost accounting. Use development data for settings and an independent test set for the final estimate. Report uncertainty across examples or seeds when the evaluation design supports it; model scores and self-assessments are not automatically calibrated probabilities of correctness.

Example application

Evaluate a closed model for document assistance while documenting reproducibility limits and evidence requirements.

Interpretation / pitfalls

Watch out

Benchmark results from the historical report are not current guarantees for every product bearing a related name. The code below isolates one stated component; successful execution does not validate model quality or reproduce the cited experiment.

Python and R code examples

Full implementation route: Use a currently documented provider interface only after checking model availability; R can make documented HTTP requests. The example is a generic output-likelihood calculation, not executable access to GPT-4 or a reproduction claim.

Example scope: Generic conditional output-likelihood arithmetic; not GPT-4 access, architecture, or reproduction.

Dependencies: Python 3 standard library; base R; shared setup above. No model downloads or external services.

Validation: Python component executed in the combined example script; R counterpart supplied but not runtime-tested here. All numbers are synthetic.

Python and R

The reference's own programs, shown as written. A component demo shows one central piece of the method; it doesn't train a full model.

Python

Component demo, not a trained model — Generic conditional output-likelihood arithmetic; not GPT-4 access, architecture, or reproduction.

Shared setup for this chapter
import math

def softmax(xs):
    m = max(xs)
    es = [math.exp(x-m) for x in xs]
    return [e/sum(es) for e in es]

def dot(a, b):
    return sum(x*y for x, y in zip(a, b))

def matvec(matrix, vector):
    return [dot(row, vector) for row in matrix]

def meanvec(rows):
    return [sum(row[j] for row in rows)/len(rows) for j in range(len(rows[0]))]

def sigmoid(x):
    return 1/(1+math.exp(-x))

def nll(probabilities):
    return -sum(math.log(p) for p in probabilities)
conditional_token_probabilities = [0.8,0.6,0.9]
print(math.prod(conditional_token_probabilities))
R

Component demo, not a trained model — Generic conditional output-likelihood arithmetic; not GPT-4 access, architecture, or reproduction.

Shared setup for this chapter
softmax <- function(x) {
  shifted <- exp(x-max(x))
  shifted/sum(shifted)
}
conditional_token_probabilities <- c(0.8,0.6,0.9)
print(prod(conditional_token_probabilities))

Sources

From the CodeSplash reference, entry LNG034.