Browse · Writeups
Llama 2: Commercial Access, Preference Data, and the Work Beyond Benchmarks
A July 2023 launch-day conversation about commercially usable models, the engineering behind human feedback, and the applications still waiting to be tested.
Source and teaching reviews passed · Human editorial review pending.
A summarizer you can ship—but still need to test
Could Simon trust Llama 2 to summarize documents? That would take time to establish. Could he build a commercial product with it? Unlike the original Llama and derivatives such as Vicuna, Llama 2 permitted commercial use, subject to its license. For developers, that changed the value of experimenting: a successful application could become something they shipped.
These were launch-day judgments in the Latent Space conversation. Hugging Face had early access as a launch partner; most panelists were reacting as the release unfolded. Nathan Lambert, then helping lead reinforcement learning from human feedback (RLHF) at Hugging Face, worked on fine-tuning models to do what people want. His close reading of the training methodology supplied a starting point for understanding the release.
Lambert found extensive methodology but limited dataset disclosure in the Llama 2 paper. It explained much of the implementation stack, yet omitted the pretraining data distribution. It also mentioned giving highly factual content greater weight during training without explaining the procedure. Wikipedia-like material was his suggested example, not a disclosed ingredient.
The distinctive post-training choice was separate reward models for helpfulness and safety: evaluators trained toward useful responses and safe responses, respectively. According to Lambert, Meta began with open preference data and expanded it substantially. Data access carried a separate qualification: publicly available meant downloadable, not necessarily free of copyright or terms-of-service restrictions.
Simon had already downloaded a version that worked on his laptop, although Meta’s official route still required a form and approval. He had also tried a paid Replicate deployment. Matt described a16z’s playground, Replicate integration, and recently released starter kit as practical entry points for developers who could neither use OpenAI’s API nor train a model from scratch. He cautioned that the starter code might not be production ready.
Early tests: fast answers, benign refusals, limited context
Matt’s informal testing, primarily with 13B and then 70B, produced fast responses he judged comparable to GPT-3.5 on some questions, especially creative tasks. This was a subjective first impression. Alessio reported that the released models had 7 billion, 13 billion, and 70 billion parameters; a 34B model had been withheld for insufficient red-teaming time.
Safety tuning could obstruct benign requests. Alessio relayed a tweet in which Llama 2 reportedly refused to explain how to kill a Linux process, interpreting the request as harmful. Another participant reported a refusal to list animal emoji because doing so would be disrespectful. These anecdotes established neither a refusal rate nor an RLHF cause, but raised a consequential question: how much behavior should developers decide before release, and how much should users control afterward?
The context window—the length of input a model can work with—raised a different tradeoff. After conflicting figures were offered, Matt supplied 4K and said he believed all model sizes shared that limit. Based on limited testing, he suspected a shorter window could yield better effective accuracy because high-quality long-context training data was difficult to obtain. Another participant emphasized the practical benefits of Claude’s 100,000-token context. Longer input capacity and reliable use of that input were distinct questions.
A participant proposed extending the window through a technique called RoPE scaling, described here as a small code change that had extended the previous Llama beyond its training context. They expected it might transfer to Llama 2, while acknowledging debate over effectiveness and possible degradation in the middle of the context. Its application to the new release remained untested in this discussion.
Commercial permission has boundaries
Participants expected commercial permission to attract companies that could now deploy the improvements they developed. But commercially usable, redistributable, and open source were not interchangeable. One participant preferred openly licensed, arguing that the established open-source definition did not fit Llama 2.
The panel’s reading of the license focused on two boundaries: - The scale threshold applied at release. A participant interpreted the 700-million-monthly-active-user provision as requiring an additional Meta license for companies already at that scale, rather than those crossing it later. - Training other models raised distillation questions. Participants understood the restriction as protecting against transferring capabilities through model-generated training data. They questioned its reach when a model served as a judge, generated prompts that humans modified, or helped train a future architecture outside familiar categories.
Lambert said licensing had been a recurring issue in Hugging Face’s internal development and customer conversations for the preceding six months. Enabling commercial use of open language models was central to its monetization efforts, and he expected substantial Llama 2 uptake despite the restrictions.
Training efficiency and serving efficiency are different objectives
The pretraining discussion centered on a 7B model trained on two trillion tokens, roughly 285 training tokens per parameter. Alessio interpreted the still-falling training-loss curves as a sign that further training could help. The panel asked whether this allocation undermined Chinchilla-style scaling, which sought an optimal allocation for a pretraining compute budget.
Lambert argued that improved data quality weakened earlier assumptions. His examples included filtering incomplete or erroneous text and deduplication, which avoids repeatedly training on identical material copied across websites. He acknowledged that curation was not his strongest area of expertise, but expected the trend toward more high-quality training data to continue.
Another participant made the objective explicit: deployment also has an inference budget—the cost of running the trained model. A training allocation that accounts for that expense can differ from one optimized solely for pretraining without refuting the earlier result. Falling training loss also need not mean better performance on new examples. A secondhand report of overfitting at a 1,000:1 token-to-parameter ratio illustrated that concern, though its model, dataset, and evaluation conditions were unspecified.
Lambert saw Llama 2 as a checkpoint in a continuing project. One example was context distillation: transferring behavior induced by a long system prompt into a shorter prompt. He described a related Llama 2 technique for sustaining character behavior over more conversation turns. Such methods and the paper’s unfinished capabilities informed his expectation that Meta would keep developing the models.
Choose models by task, evidence, and control
Early capability concerns went beyond refusals. Alex’s limited Hebrew testing left him unimpressed, and he found the out-of-the-box results on the HumanEval coding benchmark disappointing. Another participant argued that HumanEval poorly represented everyday coding-chatbot use. Better instruction tuning was proposed as a possible improvement, but the undisclosed pretraining mixture made it difficult to reason about the model’s exposure to code.
For Simon, training-data transparency helped developers select applications. Information such as code exposure could guide decisions about what to test and deploy. He accepted the strategic and reputational risks Meta took by releasing the model while maintaining that users lacked useful selection information. Other participants saw a potential return for Meta in the ecosystem of customizations and fine-tunes, comparing it with the community development around PyTorch and React.
One panelist reported startups routing workloads according to their requirements: - Demanding accuracy and generation: GPT-4, which the panelist regarded as the necessary choice at the time. - Simple queries: an off-the-shelf open model. - Intermediate, repeatable tasks: a task-specific fine-tune. This approach depended on commercially usable models with suitable quality, latency, and cost; it was an observed deployment pattern, not a measured comparison of routing systems.
The transparency disagreement persisted: one participant argued that evaluations covering everything a user needed could substitute for full dataset disclosure; another would choose the more transparent of two equally capable models. Downloadable weights offered an additional benefit: control over model availability. A business could retain a fixed model, accepting that it might no longer be state of the art a few months later.
Preference data requires a feedback loop
The discussion returned to the human judgments behind RLHF. Extrapolating from a Hugging Face pilot contract, Lambert estimated that preference-data collection at Llama 2’s scale could approach $20 million. This was an estimate, not a disclosed Meta expense. Additional safety flags and other metadata increase the time required for each annotation, raising costs.
Conversation length adds another tradeoff. A single instruction and a four-turn chat consume different amounts of annotator effort, changing the number of labels a workforce can produce. Lambert said open datasets lacked enough multi-turn examples; collecting them supported both conversational capabilities and the preference model evaluating those conversations.
Lambert described data procurement as an iterative training process: 1. Receive vendor batches. Begin with deliveries that grow over time, allowing researchers to calibrate the task. 2. Inspect and revise instructions. Review samples and adjust what subsequent batches should contain. 3. Train and identify gaps. Use the model’s weaknesses to request more targeted examples, then repeat. He said Llama 2 used this loop and estimated that obtaining the data took weeks to months.
Annotation count alone misses the difficult part: obtaining diverse, non-overlapping tasks. Lambert argued that asking 250 people for ten tasks each could produce a badly skewed collection. Roughly 27,000 varied tasks required deliberate distribution management. He praised Open Assistant as an open instruction dataset and preferred clean, helpful responses to the “uncensored” framing sometimes used for datasets that removed stock refusal language.
Code introduced a specialist bottleneck. Lambert suggested that lower throughput from annotators with programming expertise could help explain weaker coding behavior. The panel also questioned how much supervised fine-tuning data—example instruction responses used for training—was enough. Comparing human and model-generated responses raised the possibility of concentrating human effort on preference judgments, but no universal stopping rule emerged.
The discussion produced two complementary proposals: - Add a code-specific reward model. Extend Meta’s helpfulness-and-safety design with an evaluator that also grades responses to flagged coding prompts. - Collect feedback through “Llama Stack Overflow.” Rate generated coding answers and whole conversation chains to build a fine-tuning dataset. A participant pointed to Stack Llama, an early Hugging Face experiment, while identifying feedback through code execution as a remaining challenge. The proposals came without new experimental results.
Turn local execution into retrieval and tool use
Llama 2 inherited local-execution infrastructure from the first release, including GGML, GPT-4All, and Pinokio. Hugging Face staff had also prepared launch-day library support. Alex reported running Llama 2 7B in GGML format, which was available through routes such as the 7B GGML download. He described it as fast and noted that execution could be split across CPU and GPU, without providing a hardware configuration or throughput measurement.
Setup instructions remained a barrier. A participant who had not managed to run Llama 2 through Transformers with Metal acceleration on an M2 Mac asked for a straightforward guide. A response about llama.cpp accelerating Llama 1 did not resolve that integration. Detailed documentation was itself a useful contribution the community could make.
Anton described Chroma’s evaluation of retrieval-augmented generation, where retrieved context supplies facts for a model’s answer. His hypothesis was that smaller models could work well if they focused on reasoning over supplied facts rather than storing all those facts in their weights. Results were pending.
His quick test used multiple-choice questions with distractors and supporting paragraphs. But finding a relevant document does not cover every production task. Anton argued that academic, exam-style evaluations poorly represented many application workloads; Chroma was considering community-sourced benchmarks based on more realistic data.
Simon wanted Toolformer-style tool use, in which the model calls functions. His desired interface matched OpenAI function calling but ran on Llama 2. The paper had not given him a clear sense of the model’s reliability. Another participant treated its reported tool behavior as a starting point for targeted fine-tuning.
Russell described Scale’s newly released library for fine-tuning and serving models on Scale-hosted or user-controlled infrastructure. A SQL dataset was planned; retrieval and other tool-use datasets were under consideration. A requested Llama 2 version of ChatGPT Code Interpreter remained an experiment to attempt. Russell also emphasized rising demand for specialist labelers, including programmers in particular languages and people with accounting, legal, or other professional qualifications.
Local utility and enterprise deployment boundaries
One participant’s Vicuna 7B running offline on an iPhone illustrated the distance between a demonstration and a useful application. After months of mostly demonstrating poetry generation, brainstorming names was one practical use they had found. They expected retrieval and tools to make small local models more useful than standalone chat.
The Microsoft partnership raised a different question: who benefits when many models become available? One interpretation was that Azure could capture compute demand across competing models. Russell expected broader availability to increase enterprise Azure usage. A participant distinguished this serving role from training, reading the paper as describing training on Meta’s own supercluster and production cluster.
Participants offered several explanations for enterprise self-hosting: control over sensitive data, perceptions of privacy, and concrete security requirements. Russell stressed the last: running within a customer’s virtual private cloud and passing compliance review were major drivers in his experience at Scale. Control of the deployment environment could determine whether adoption was possible.
What comes next: specialize, inspect, verify
The closing predictions began with community evaluation followed by application-specific fine-tuning. Participants expected experimentation to move faster because developers already knew the tools. Alpaca, the fine-tune credited with making the original Llama more useful and accessible, suggested a pattern they hoped would repeat across application categories.
A concrete target was specializing a model for one tool. An application needing one tool used reliably could focus its fine-tuning on that behavior. The motivation was the compounding of errors across long action chains, a major barrier to useful agents. The expected benefit remained conditional on fine-tuning working well.
Open access also meant examining and modifying a model’s live internal state, beyond what a hosted request-and-response API exposed. Participants saw opportunities for new research and applications, provided the model was sufficiently capable. Retaining the model also offered research independence from a provider’s continued support for hosted models and fine-tunes.
That access shaped the closing safety debate. Participants argued that more researchers studying actual model internals could improve preparation for malicious use. One speculated that future models might explain Llama 2’s weights. Another challenged the premise: an explanation still needs verification. The suggested test—change a position on a Go board and observe the effect—was acknowledged as hand-wavy, with no specific validation result.
The conversation ended with a prediction that language models would become commonplace on individual computers, and an immediate recommendation: try Llama 2 directly. Useful retrieval, dependable tool calls, and better agents were the experiments participants wanted to pursue next.