Latest / AI & agents

Language Model Arithmetic

github.com · Open source · Quiet

Combine language models and prompts with formulas to control style

Visit github.com ↗Share

  • text generation
  • language model arithmetic
  • controlled text generation
  • llm style control
  • prompt blending
  • python llm framework
Stars
224
Forks
16
Open issues
5
Last commit
Found
2 years ago

GitHub figures as of . They are context, not a ranking.

This open-source Python framework lets you combine several language models or system prompts in one formula to control the style of generated text. It suits researchers and developers working with LLMs who need finer control over output style.

Repository description on GitHub: “Controlled Text Generation via Language Model Arithmetic”

What it does

  • Formulas can include classifiers to bias output toward or away from attributes
  • Interpolates between differently prompted models with Python code

Good for

  • Blend two differently prompted models to shift the style of generated text
  • Steer generated text toward or away from a target attribute with a classifier
  • Experiment with style control in LLM text generation research

Suits: Researchers and developers controlling LLM text style.

Worth knowing: The main branch has updates, so reproducing the paper's results requires the v1.0 branch.

What you can try

Read the README on GitHub and install from source.

Links go to third-party sites KipFound does not control. KipFound has not installed, audited or tested this software.

Found vs. released

Kip first saw Language Model Arithmetic on , when OcelotBane posted it to Show HN. GitHub listed no published releases for eth-sri/language-model-arithmetic when checked , so the project may ship straight from its main branch. The repository was created .

Day-7 and day-30 updates

Day 7 no new release

  • No tagged release was published in the first 7 days after it was found (GitHub release dates).
  • Show HN discussion at check time: 85 points, 8 comments. API record

Checked , later than day 7 because tracking began after.

Day 30 no new release

  • No tagged release was published in the first 30 days after it was found (GitHub release dates).
  • Show HN discussion at check time: 85 points, 8 comments. API record

Checked , later than day 30 because tracking began after.

Release timeline every entry links to its source

  1. Repository created on GitHub: eth-sri/language-model-arithmetic
  2. Found: OcelotBane posted it to Show HN. Show HN
  3. Day-7 check recorded by Kip (details)
  4. Day-30 check recorded by Kip (details)

Quick answers

When was Language Model Arithmetic released?
No dated release record is available. Kip found it on Show HN on 9 Dec 2023.
Is Language Model Arithmetic open source?
Its source is public on GitHub at eth-sri/language-model-arithmetic under the MIT licence.
What does Language Model Arithmetic run on?
Library.
Is Language Model Arithmetic free?
It is open source, so the code is free to read and run; check the licence for terms.
Is Language Model Arithmetic still maintained?
It has had no commit or release for over a year as of the latest check.

Provenance

SourceRecordLast checked
Show HNlisting
official API record
GitHub repositoryeth-sri/language-model-arithmetic
REST API record
GitHub Releasesrelease list
REST API record

Stable ID hn-38586014. Summary written by KipFound’s editor.

Share

Similar tools

More in AI & agents

Made this, or spotted a mistake? Ask for a correction or removal. No account or email address needed.