lory-dials-twin2k-v1
compact addon for customer behavior simulation
2 min readupdated
This small 2.4 MB file turns a Lory-4B v2 language agent into a real-people simulator based on their survey responses. The addon tunes 8 linear layers of the frozen base model, letting you predict purchase decisions using a small number of examples. The model was trained on the Twin-2K-500 dataset and is useful for market researchers, sociologists, and AI agent developers testing product scenarios.
Key features
- Compact addon size of just 2.4 MB for the Lory-4B v2 model.
- Use of a Gaussian prior distribution across people and shared price weights.
- Prediction of purchase decisions based on just 5 responses from each person.
- Frozen base model weights with low-rank adaptations in attention and MLP layers.
What you can do
- Simulate demand for new food and everyday goods in the US.
- Run a virtual customer survey to test pricing policy.
- Create consumer-twin agents using the lory-dials library.
Example
Code example for loading the addon and running demand simulation using the lory-dials library:
from lory_dials import WeightSpace, purchase_survey, demand
ws = WeightSpace.from_pretrained("eltokh7/lory-dials-twin2k-v1")
agents = ws.fit_agents(rows) # {person, product, category, price, bought}
survey, scenarios = purchase_survey([("Chobani Greek Yogurt, 32 oz", "Dairy Products")], prices=[0, 2, 4, 6, 8])
print(demand(ws.run(survey, agents, scenarios)))
Read more
DetailsAccuracy: 74.8% correct answers on 100 held-out people and 20 new items across 5 responses (GPT-6.2 Sol level).
Architecture: low-rank maps on 8 layers (12, 16, 20, 24) of the Lory-4B v2 base model.
Limitations: works only with purchase questions phrased like the Twin-2K-500 dataset and for US grocery retail.










Comments