Case-Study-1 / phi3_mini_4k_instruct.py
Julian-Hans's picture
added attribution example, created local pipelines, implemented poc_app.py as a proof of concept
9ef2a14
raw
history blame
369 Bytes
# external imports
from transformers import pipeline
# local imports
import config
class Phi3_Mini_4k_Instruct:
def __init__(self):
self.local_pipeline = pipeline("text-generation", model=config.LLM_MODEL, trust_remote_code=True)
def generate_text_local_pipeline(self, messages):
result = self.local_pipeline(messages)
return result