Skip to content

Commit

Permalink
()
Browse files Browse the repository at this point in the history
  • Loading branch information
timvieira committed Jun 19, 2024
1 parent 66073d5 commit 2cfa0bc
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions benchmark/benchmark_inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,20 +142,20 @@ def main():
print(colors.cyan % colors.line(100))
print(colors.cyan % sql_prompt)

particles, record = sampler.run_inference(
particles = sampler.run_inference(
prompt=prompt,
proposal=proposal,
method=args.inference,
n_particles=args.particles,
max_tokens=args.max_tokens,
verbosity=args.verbosity,
return_record=True,
return_record=False,
)

if args.particles > 1 and record is not None:
fig = record.plot_particles_trajectory()
fig.write_html('viz.html')
print('wrote to viz.html')
# if args.particles > 1 and record is not None:
# fig = record.plot_particles_trajectory()
# fig.write_html('viz.html')
# print('wrote to viz.html')

print(colors.yellow % 'character posterior')
posterior = Float.chart()
Expand Down

0 comments on commit 2cfa0bc

Please sign in to comment.