GithubHelp home page GithubHelp logo

gptchain's Issues

Conflicting dependencies

ERROR: Cannot install -r requirements.txt (line 6) and click==8.1.3 because these package versions have conflicting dependencies.

The conflict is caused by:
The user requested click==8.1.3
runpod 1.3.4 depends on click>=8.1.7

langchain import crashes

python gptchain.py train -m unsloth/llama-3-8b-bnb-4bit --dataset-name ruslandev/tagengo-rus-gpt-4o --save-path checkpoints/llama-3-8b-gpt-4o-ru --huggingface-repo llama-3-8b-gpt-4o-ru --num-epochs 3
Traceback (most recent call last):
  File "/home/ubuntu/gptchain/gptchain.py", line 5, in <module>
    from langchain.document_loaders import TextLoader
  File "/home/ubuntu/gptchain/venv/lib/python3.10/site-packages/langchain/__init__.py", line 6, in <module>
    from langchain.agents import MRKLChain, ReActChain, SelfAskWithSearchChain
  File "/home/ubuntu/gptchain/venv/lib/python3.10/site-packages/langchain/agents/__init__.py", line 2, in <module>
    from langchain.agents.agent import (
  File "/home/ubuntu/gptchain/venv/lib/python3.10/site-packages/langchain/agents/agent.py", line 16, in <module>
    from langchain.agents.tools import InvalidTool
  File "/home/ubuntu/gptchain/venv/lib/python3.10/site-packages/langchain/agents/tools.py", line 4, in <module>
    from langchain.callbacks.manager import (
  File "/home/ubuntu/gptchain/venv/lib/python3.10/site-packages/langchain/callbacks/__init__.py", line 3, in <module>
    from langchain.callbacks.aim_callback import AimCallbackHandler
  File "/home/ubuntu/gptchain/venv/lib/python3.10/site-packages/langchain/callbacks/aim_callback.py", line 4, in <module>
    from langchain.callbacks.base import BaseCallbackHandler
  File "/home/ubuntu/gptchain/venv/lib/python3.10/site-packages/langchain/callbacks/base.py", line 7, in <module>
    from langchain.schema.agent import AgentAction, AgentFinish
  File "/home/ubuntu/gptchain/venv/lib/python3.10/site-packages/langchain/schema/__init__.py", line 17, in <module>
    from langchain.schema.output import (
  File "/home/ubuntu/gptchain/venv/lib/python3.10/site-packages/langchain/schema/output.py", line 31, in <module>
    class ChatGeneration(Generation):
  File "/home/ubuntu/gptchain/venv/lib/python3.10/site-packages/langchain/schema/output.py", line 40, in ChatGeneration
    def set_text(cls, values: Dict[str, Any]) -> Dict[str, Any]:
  File "/home/ubuntu/gptchain/venv/lib/python3.10/site-packages/pydantic/deprecated/class_validators.py", line 243, in root_validator
    return root_validator()(*__args)  # type: ignore
  File "/home/ubuntu/gptchain/venv/lib/python3.10/site-packages/pydantic/deprecated/class_validators.py", line 249, in root_validator
    raise PydanticUserError(
pydantic.errors.PydanticUserError: If you use `@root_validator` with pre=False (the default) you MUST specify `skip_on_failure=True`. Note that `@root_validator` is deprecated and should be replaced with `@model_validator`.

For further information visit https://errors.pydantic.dev/2.7/u/root-validator-pre-skip

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.