YAML Metadata
Warning:
empty or missing yaml metadata in repo card
(https://huggingface.co/docs/hub/model-cards#model-card-metadata)
from transformers import LlamaForCausalLM, LlamaTokenizer
from peft import PeftModelForCausalLM
base_model = LlamaForCausalLM.from_pretrained("your/llama/path")
tokenizer = LlamaTokenizer.from_pretrained("your/llama/path")
llama_lora = PeftModelForCausalLM.from_pretrained(base_model, "logits/llama2-7b-book-qa")
prompt = "your prompt"
input_ids = tokenizer(prompt).input_ids.cuda()
output_ids = llama_lora(input_ids=input_ids)
output = tokenizer.decode(output_ids)
print(output)
Inference Providers
NEW
This model is not currently available via any of the supported Inference Providers.
The model cannot be deployed to the HF Inference API:
The model has no library tag.