simonw / simonw/llm

llm response truncated for llama2

Open
#181 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
12.5k
Forks
998
Avg merge
3d 13h
Merged PRs (30d)
10

Description

Hi Simon, the responses from llama2 have been truncated. What is the good way for llm to handle this? see

% llm -m l2c "give me 20 good names for avatars" --system "you are a creator"
Sure, here are 20 creative and unique name suggestions for avatars:

  1. Aurora Sparklefeather
  2. Zephyr Starlight
  3. Nova Frostbite
  4. Luna Nightshade
  5. Astrid Stormbringer
  6. Lyra Moonwhisper
  7. Niamh Fireheart
  8. Zara Wildfire
  9. Calliope Cosmos
  10. Phoebe Cosmicray
  11. Willow Waverider
  12. Echo Nightwalker
  13. Elara Star

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by running the included llm -m l2c example and compare the llama2 output with the expected complete response. Trace how the CLI handles the model response; done means the truncation is explained and the behavior is fixed or clearly documented with a regression test.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
ai, cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.