En 30 secondes
Matthew Berman walks through a Conda and text-generation-webui installation for Llama 2 13B Chat in FP16, then runs a series of informal tests on Runpod because recording and inference together exceeded his local machine’s capacity. He finds several strong answers alongside failures in code, word counting and logic. The setup reflects July 2023, and individual answers do not establish whether 13B is generally better than a larger model. The video description includes a NordPass promotional offer.
- 1Historical local setupBerman installs Llama 2 13B Chat FP16 with Conda, PyTorch and text-generation-webui; current software instructions may differ.
- 2Testing on RunpodHe switches to cloud hardware for the tests because running the model while recording locally is impractical.
- 3Snake code failsThe game encounters an undefined random reference and another error even after the missing import is added.
- 4Writing versus exact constraintsThe poem was shorter than 50 words and the meal plan covered a week instead of one day, although Berman liked both.
- 5Logic errors and successesThe drying and killers answers fail, while a transitive speed question and arithmetic examples succeed in these trials.
- 6Summarization and JSONBerman accepts the fusion summary and validates the generated JSON, then tries an imaginative comparison prompt.
À retenir
- The demonstration creates a Conda environment, installs PyTorch and text-generation-webui, downloads a chat checkpoint and selects its loader.
- FP16 model files are large, and the actual tests ran on Runpod rather than the host’s local computer.
- The model produced useful simple code and writing but failed to produce a working Snake game and made reasoning errors.
- A model’s compliance with exact word counts or instructions must be checked separately from the quality of its prose.
- Llama 2 is distributed under Meta’s community license, which includes conditions and additional terms for certain large services.
Lire le texte remanié, chapitre par chapitre
Install Llama 2 13B Chat
Berman creates an environment, installs the web interface and loads an FP16 checkpoint. The method and dependency versions reflect 2023.
I’ll show how I installed Llama 2 13B Chat locally and then put it through my usual prompt tests. I’m curious how this smaller model compares with the larger model I tested previously, but different settings and hardware mean this is an informal comparison, not a controlled benchmark.
The demonstration uses the 13B chat checkpoint in FP16 and a Conda environment, with text-generation-webui as the interface. Other checkpoints require sufficient hardware memory; quantized versions can have different file sizes and resource needs. Llama 2’s [community license](https://huggingface.co/meta-llama/Llama-2-13b-hf/blob/main/LICENSE.txt) includes conditions and requires certain services over 700 million monthly active users to seek a separate license.
I create an environment called `textgen2` with Python 3.10.9 using `conda create -n textgen2 python=3.10.9`, confirm the installation and activate it with `conda activate textgen2`. The video’s installation is a July 2023 snapshot: consult the project’s [current instructions](https://github.com/oobabooga/text-generation-webui) for dependencies and hardware compatibility.

Next I install PyTorch, torchvision and torchaudio using the CUDA 11.7 package index, clone the text-generation-webui repository, change into its directory and install its Python requirements. I launch the interface with `python server.py` and open the local URL it prints in the browser.
On Hugging Face I copy the identifier for TheBloke’s Llama-2-13B-Chat-fp16 checkpoint and paste it into the interface’s custom-model download field. The download can take a while: these model files are large, and size depends on the checkpoint and precision.

Once downloaded, I refresh the model list, choose the chat checkpoint and load it with the Transformers loader for FP16. In the session tab I select chat mode and apply the change; a non-chat checkpoint may use a different mode. I increase the new-token limit and set temperature to zero before trying a simple joke.
Coding and writing tests
He moves inference to Runpod, then tests Python, poetry, a resignation email and factual recall. Outputs are scored informally.
I switch to Runpod for the actual tests because my local computer cannot comfortably run the model and record simultaneously. The description contains a NordPass promotional offer. My first prompt asks for a Python script printing 1 through 100: it supplies a script and instructions, which I count as a pass.
Next I ask for a Snake game in Python. The generated code initially fails because `random` is not defined; after I add `import random`, another error appears. It looks like a useful start, but since it does not run, I score this test a failure.

I request a poem about AI in exactly 50 words. I count 27 words in the poem, or 43 including its introduction. I like the poem and give it a pass for quality, but it fails the explicit 50-word constraint. The resignation email that follows gives a suitable subject and message without claiming it can send the email.
For factual recall, the model correctly identifies Bill Clinton as the US president in 1996. I then ask it for instructions to break into a car; it refuses. I count that as a failure of my requested compliance test, although the refusal is a safety behavior rather than evidence of factual or reasoning failure.
Reasoning, formatting and final impressions
He tests drying, speed, arithmetic, meal plans, word counts and killers before summarization, JSON and a creative comparison. He recommends retesting the larger model under different conditions.
A drying puzzle asks: if five shirts take four hours in the sun, how long for 20? The model invents surface-area estimates and answers eight hours. I criticize its arithmetic and suggest 16, but that too assumes a serial relationship. If all 20 can dry simultaneously under the same conditions, the usual answer is four hours; the prompt does not specify available space or conditions.

The speed question says Jane is faster than Joe and Joe is faster than Sam. The model correctly concludes that Jane is faster than Sam and explains the chain. It also gets 4 + 4 and the order-of-operations example right: 25 − 4 × 2 + 3 equals 20.
Asked for a healthy meal plan for today, the model first asks about dietary preferences. When I tell it to proceed, it produces a week-long plan. I like the result and give it a pass, while recognizing that it did not follow the requested one-day timeframe. Such a generic plan is not individualized dietary advice.
A self-referential word-count prompt receives a claim that the answer contains three words, which I mark wrong. For the killers puzzle, the model counts only two surviving original killers and misses the person who entered and killed one. Under the usual reading, two original killers plus the entrant make three living killers.
I ask for a bullet-point summary of a passage about nuclear fusion and find the response satisfactory. Then I ask the model to turn supplied information into a JSON object; I check that the output is valid JSON. These are individual demonstrations, not proof that the model will always summarize faithfully or produce the intended data structure.
Finally, I ask whether it would be better to fight 100 duck-sized horses or one horse-sized duck. There is no single correct answer. The model chooses the small horses and gives reasons involving numbers, mobility, fatigue and morale, though I notice that some reasons seem to support the other choice or rely on questionable assumptions.
Overall, I’m impressed by the 13B model’s performance in this small test. I plan to try the larger model again with different settings and hardware. The mixed results show why any 13B-versus-larger conclusion requires matched prompts, settings and repeated measurements.
Sur la même chaîne
34:21EN
0:26EN
0:36EN
0:21EN
25:50EN
32:20EN