milyiyo commited on
Commit
065161d
1 Parent(s): 8f6eebf

Use model trained with 14k examples

Browse files
Files changed (1) hide show
  1. functions.py +4 -2
functions.py CHANGED
@@ -286,8 +286,10 @@ def load_embeddings_model(model_ckpt: str):
286
  return model, tokenizer
287
 
288
 
289
- model, tokenizer = load_model(
290
- "hackathon-somos-nlp-2023/opt-6.7b-lora-sag-t3000-v300-v2")
 
 
291
  pipe = pipeline("text2text-generation", model=model,
292
  tokenizer=tokenizer, max_new_tokens=100)
293
  llm = HuggingFacePipeline(pipeline=pipe)
 
286
  return model, tokenizer
287
 
288
 
289
+ # Models trained with LoRA
290
+ # - hackathon-somos-nlp-2023/opt-6.7b-lora-sag-t3000-v300-v2
291
+ # - hackathon-somos-nlp-2023/opt-6.7b-lora-sag-t14000-v1400-v1
292
+ model, tokenizer = load_model("hackathon-somos-nlp-2023/opt-6.7b-lora-sag-t14000-v1400-v1")
293
  pipe = pipeline("text2text-generation", model=model,
294
  tokenizer=tokenizer, max_new_tokens=100)
295
  llm = HuggingFacePipeline(pipeline=pipe)