ruslanperesy / gptchain Goto Github PK
View Code? Open in Web Editor NEWFramework to fine-tune LLMs and build RAG applications.
License: Apache License 2.0
Framework to fine-tune LLMs and build RAG applications.
License: Apache License 2.0
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
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.