Hacker News new | ask | show | jobs
by teruakohatu 1202 days ago
I tried the 7b version. It goes off on a tangent for just about every prompt. Any one know how to avoid this?

For example:

<Prompt># Write a simple python function that # 1. Ask me for a number in mile # 2. It converts miles to kilometers

import </prompt>

<response>math, random #define a variable distance = input('Please enter the Miles:') Average Gasoline Prices By State In July [CHART] Gas prices rose last week as crude oil futures spiked higher amid concerns about tensions in Egypt and North Africa. The average national price of gas increased to $3.50 per gallon from Thursday, up 21 cents a day after the Energy Information Administration reported that wholesale motor fuels inventories declined last week by more than half-a-million barrels (http://www.eia.gov/cneaf/electricity/epm_table3.html) </response>

2 comments

These models aren’t finetuned to understand conversational requests like ChatGPT is. You have to prompt it by giving it the beginning of the thing you want instead.

Try

  def prompt_user_for_miles_and_convert_to_kilometres:
I'm not a specialist, but maybe it's not fine tuned for writing code. I got that sort of answer with old models of gpt3 as well.