Text Generation
Transformers
PyTorch
Safetensors
English
llama
finance
text-generation-inference
Inference Endpoints
AdaptLLM commited on
Commit
7ce9bb5
·
1 Parent(s): 99d48dd

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -56,11 +56,11 @@ MMM Chicago Stock Exchange, Inc.
56
 
57
  Which debt securities are registered to trade on a national securities exchange under 3M's name as of Q2 of 2023?'''
58
 
59
- # NOTE: You do NOT need to follow any prompt templates for the chat model, simply use your input as the prompt
60
  prompt = user_input
61
 
62
  inputs = tokenizer(prompt, return_tensors="pt", add_special_tokens=False).input_ids.to(model.device)
63
- outputs = model.generate(input_ids=inputs, max_length=4096)[0]
64
 
65
  answer_start = int(inputs.shape[-1])
66
  pred = tokenizer.decode(outputs[answer_start:], skip_special_tokens=True)
 
56
 
57
  Which debt securities are registered to trade on a national securities exchange under 3M's name as of Q2 of 2023?'''
58
 
59
+ # Simply use your input as the prompt
60
  prompt = user_input
61
 
62
  inputs = tokenizer(prompt, return_tensors="pt", add_special_tokens=False).input_ids.to(model.device)
63
+ outputs = model.generate(input_ids=inputs, max_length=2048)[0]
64
 
65
  answer_start = int(inputs.shape[-1])
66
  pred = tokenizer.decode(outputs[answer_start:], skip_special_tokens=True)