Loading page

Run a text-generation smoke test

After preparing the binary and the model, run CPU inference using short text prompts.

Start by running a smoke test on the Zena Linux guest:

    

        
        
LP2_LLAMA_CLI="$LP2_WORK_DIR/llama.cpp/build/bin/llama-cli"

"$LP2_LLAMA_CLI" \
    -m "$LP2_MODEL_FILE" \
    -t 4 -tb 4 -ngl 0 -c 512 -n 128 --temp 0 --seed 42 \
    --single-turn --simple-io \
    -p 'Write one short sentence about a virtual platform.'

    

The command requests zero GPU layers with -ngl 0. If the option is missing, you might need to rebuild llama.cpp from an earlier commit.

The output is similar to:

    

        
        build      : b12790-436d7e81c
model      : /root/zena-llamacpp/models/qwen2.5-0.5b-instruct-q4_0.gguf
ftype      : Q4_0
modalities : text

> Write one short sentence about a virtual platform.
A virtual platform is a platform that allows users to create and share digital content, such as images, videos, and documents, in a virtual environment.

Exiting...

        
    

During testing, the CPU-only build reported that no usable GPU was found. However, this type of warning doesn’t prevent inference.

The answer in the example output used the general meaning of virtual platform. The response isn’t a definition of an automotive virtual system-on-chip (vSoC). The smoke test doesn’t validate answer quality.

Change the prompt and run a second request

Keep the same Zena virtual platform, llama.cpp binary, GGUF file, and runtime flags. Change only the prompt, then compare the two recorded requests.

Save the changed prompt and run the same CPU command in the guest shell:

    

        
        
"$LP2_LLAMA_CLI" \
    -m "$LP2_MODEL_FILE" \
    -t 4 -tb 4 -ngl 0 -c 512 -n 128 --temp 0 --seed 42 \
    --single-turn --simple-io \
    -p 'Write one short sentence about an automotive dashboard.'

    

The second Zena request uses the same command options and model path, with only the prompt changed. Its saved exit code was 0.

The output is similar to:

    

        
        build      : b12790-436d7e81c
model      : /root/zena-llamacpp/models/qwen2.5-0.5b-instruct-q4_0.gguf
ftype      : Q4_0
modalities : text

> Write one short sentence about an automotive dashboard.
An automotive dashboard is a crucial component of a vehicle's interface, displaying crucial information such as speed, distance, fuel consumption, and other critical data to the driver.

Exiting...

        
    

The two requests demonstrate that the guest application accepted different prompts and generated text. The outputs don’t establish answer quality or provide a controlled performance comparison. Your generated wording might differ.

What you’ve accomplished

You built and ran a CPU text workload and preserved evidence for two controlled requests. The result supports functional bring-up on the tested ANA Zena CSS configuration.

Next, you can extend the application to build a camera to vision-language model pipeline on Arm Zena CSS .