samlhuillier / code-llama-fine-tune-notebook

Fine-tune Code Llama to generate SQL queries from text
32 stars 6 forks source link

Can't get PyTorch to install on example #3

Closed matthoffner closed 1 year ago

matthoffner commented 1 year ago

Hey thanks for the guide, I'm getting stuck running the Colab demo still after restarting the notebook.

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
[<ipython-input-2-05b9ccf280e0>](https://localhost:8080/#) in <cell line: 4>()
      2 import os
      3 import sys
----> 4 import torch
      5 from peft import (
      6     LoraConfig,

12 frames
[/usr/lib/python3.10/_pyio.py](https://localhost:8080/#) in __init__(self, buffer, encoding, errors, newline, line_buffering, write_through)
   2043                 encoding = "utf-8"
   2044             else:
-> 2045                 encoding = locale.getpreferredencoding(False)
   2046 
   2047         if not isinstance(encoding, str):

TypeError: <lambda>() takes 0 positional arguments but 1 was given