Views
No views yet

1#Fixed
2def lerp(a, b, t):
3 return a * (1 - t) + b * t
4
5def nearswap(v0, v1, t):
6 lweight = np.abs(v0 - v1)
7 with np.errstate(divide='ignore', invalid='ignore'):
8 lweight = np.where(lweight != 0, t / lweight, 1.0)
9 lweight = np.nan_to_num(lweight, nan=1.0, posinf=1.0, neginf=1.0)
10 np.clip(lweight, a_min=0.0, a_max=1.0, out=lweight)
11 return lerp(v0, v1, lweight)A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful,
detailed, and polite answers to the user's questions. USER: Hi ASSISTANT: Hello.</s>
USER: Who are you? ASSISTANT: I am WizardLM.</s>......Below is an instruction that describes a task. Write a response that appropriately completes the request.
### Instruction:
Take the role of {{char}} in a play where you leave a lasting impression on {{user}}. Never skip or gloss over {{char}}'s actions.
### Instruction:
{prompt}
### Response:
{output}[Genre: <genre1>, <genre2>]