curiousily / Get-Things-Done-with-Prompt-Engineering-and-LangChain

LangChain & Prompt Engineering tutorials on Large Language Models (LLMs) such as ChatGPT with custom data. Jupyter notebooks on loading and indexing data, creating prompt templates, CSV agents, and using retrieval QA chains to query the custom data. Projects for using a private LLM (Llama 2) for chat with PDF files, tweets sentiment analysis.
https://mlexpert.io
Apache License 2.0
1.13k stars 356 forks source link

14.fine-tuning-llama-2-7b-on-custom-dataset.ipynb gives error: AttributeError: 'LlamaForCausalLM' object has no attribute 'merge_and_unload' #5

Open nklsbckmnn opened 1 year ago

nklsbckmnn commented 1 year ago

14.fine-tuning-llama-2-7b-on-custom-dataset.ipynb gives me the error "AttributeError: 'LlamaForCausalLM' object has no attribute 'merge_and_unload'" when I try to run it on Google Colab Pro at this line: "merged_model = model.merge_and_unload()". Any ideas? Thanks.

SaraTom commented 10 months ago

same issue

Aditi1612 commented 8 months ago

Is there any solution for the issue?