Uploaded image for project: 'Red Hat Enterprise Linux AI'
  1. Red Hat Enterprise Linux AI
  2. RHELAI-4326

In-context Learning in ilab. Intermittent issue

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False
    • Important

      Description:
      The LLM does not retain user-provided contextual information (specifically the user's name) across turns within the same chat session. Initially, when prompted with a question such as “What is my name?”, the model correctly responds that it doesn't know. However, even after explicitly providing the name (e.g., “My name is Vikash”), subsequent prompts such as “What is my name now?” still result in the model responding with no knowledge of the name.

      Model in question: granite-3.1-8b-lab-v2.1

      Expected Behavior:
      The LLM should utilize the conversational context window to reference recent user inputs. After a user provides their name in-session, the model should be able to infer or recall it in follow-up messages, assuming the context window is not exceeded.

      [fzatlouk@localhost ~]$ nvidia-smi
      Mon Jun 9 22:25:09 2025
      -----------------------------------------------------------------------------------------

      NVIDIA-SMI 550.163.01 Driver Version: 550.163.01 CUDA Version: 12.4
      ---------------------------------------{}+{}--------------------{}{}--------------------
      GPU Name Persistence-M Bus-Id Disp.A Volatile Uncorr. ECC
      Fan Temp Perf Pwr:Usage/Cap Memory-Usage GPU-Util Compute M.
          MIG M.
      =======================================================================================
      0 NVIDIA GH200 480GB On 00000009:01:00.0 Off 0
      N/A 27C P0 77W / 700W 17MiB / 97871MiB 0% Default
          Disabled

      ---------------------------------------{}--------------------{}++{}--------------------

      -----------------------------------------------------------------------------------------

      Processes:
      GPU GI CI PID Type Process name GPU Memory
      ID ID Usage
      =========================================================================================
      No running processes found

      -----------------------------------------------------------------------------------------

      atlouk@localhost ~]$ ilab model list

      Model Name Last Modified Size Absolute path
      models/granite-3.1-8b-lab-v2.1 2025-06-09 21:04:50 31.2 GB /home/fzatlouk/.cache/instructlab/models/granite-3.1-8b-lab-v2.1
      models/granite-3.1-8b-starter-v2.1 2025-06-09 21:12:56 31.2 GB /home/fzatlouk/.cache/instructlab/models/granite-3.1-8b-starter-v2.1

      image:
      image: registry.stage.redhat.io/rhelai1/bootc-nvidia-rhel9:1.5.1-1749187229
      transport: registry
      version: 9.20250429.0
      timestamp: null
      imageDigest: sha256:0acab414c92b8f1da20553a6c0041df3fb438bc3d74b331f51a1de2816fb7218

              rh-ee-esivaram Eshwar Prasad Sivaramakrishnan
              rh-ee-vshaw Vikash Shaw
              Oleg Silkin
              Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

                Created:
                Updated:
                Resolved: