Downloads · 30 days
6
10% of all-time downloads
piazzola/llama-2-7b-address
llama-2-7b-address is a text generation model from piazzola. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as cc-by-nc-2.0.
This model is a fine-tuned version of NousResearch/Llama-2-7b-hf on the addressWithContext dataset.
Downloads · 30 days
6
10% of all-time downloads
All-time downloads
62
Public
Repo size
7.7 GB
Likes
0
Public
Click a slice to open those files.
.bin7.7 GB · 100%
From the Hugging Face model README
This model is a fine-tuned version of NousResearch/Llama-2-7b-hf on the addressWithContext dataset.
from transformers import pipeline
nlp = pipeline("text-generation",
model="piazzola/llama-2-7b-address",
max_new_tokens = 30)
context = "Landlord hereby demises unto Tenant, and Tenant hereby leases from Landlord for the terms and upon the conditions set forth in this Lease 30,600 square feet of space in the building located at 15 Firstfield Road, Gaithersburg, Maryland, the Building, as set forth on Exhibit A, hereto attached, said space being referred to as the Premises."
LLAMA_PROMPT_TEST = (
'[INST] <<SYS>>\n'
'You are a helpful and respectful assistant '
'for getting address information from a text.\n'
'<</SYS>>\n'
'\n'
'Given the following context, answer the following question.\n'
'Context: {Context}\n'
'\n'
'Question:\n'
'What is the address in the given context?\n'
'\n'
'[/INST]\n'
)
LLAMA_PROMPT_TEST = LLAMA_PROMPT_TEST.format(Context=context)
nlp(LLAMA_PROMPT_TEST)