Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Llama Support #134

Merged
merged 7 commits into from
Apr 9, 2023
Merged

Llama Support #134

merged 7 commits into from
Apr 9, 2023

Conversation

yoazmenda
Copy link
Contributor

@yoazmenda yoazmenda commented Apr 8, 2023

Initial support for llama models as local llm

image

How to use:

  1. Add the llama model file somewhere into the the project directory (so it can be referenced by path later)
  2. run locally: (change inside package.json "proxy": "http://backend:7860" into "http://localhost:5003". Then "make run_backend" followed by "cd src/frontend & npm install & npm start
  3. Alternatively run using docker "make dev" (takes forever to respond - Appreciate ideas on how to make docker setup to answer in reasonable time, or maybe comment out in docker scenario?)
  4. In the Langflow UI, choose LlamaCpp as you llm and point to your model file

Tested on MacBook Pro M1 using Vicuna for llama model weights

Download the model here

@yoazmenda yoazmenda marked this pull request as ready for review April 8, 2023 07:14
Copy link
Contributor

@ogabrielluiz ogabrielluiz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commented by mistake, sorry. The review is in the comment below.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't need to add this as LlamaCpp is part of the dunder all in llms dunder init.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By the way, we just pushed a PR that fixes some things in the Chain nodes, could you test your implementation with those changes, please?

I'll try it out here but loading llama is proving to be a bit troublesome here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ogabrielluiz
Thanks :)
Removed the unnecessary custom object initialization.
Also merged latest changes into the PR and it works 👍

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome. I haven't been able to test. Most likely I got the wrong file or my laptop can't handle it hahha

@ogabrielluiz ogabrielluiz changed the base branch from main to dev April 8, 2023 12:11
@ogabrielluiz ogabrielluiz merged commit 4bff12c into langflow-ai:dev Apr 9, 2023
@lolxdmainkaisemaanlu
Copy link

lolxdmainkaisemaanlu commented Apr 13, 2023

EDIT: It seems to be working now - I had forgotten to change localhost:5003 back to backend:7860
image

OLD: dev make is working now but giving this error:

image
image

^^ none of the side menu is visible as you can see

Console log:

[+] Running 3/1
✔ Network langflow_default Created 0.1s
✔ Container langflow-frontend-1 Created 0.1s
✔ Container langflow-backend-1 Created 0.1s
Attaching to langflow-backend-1, langflow-frontend-1
langflow-backend-1 | INFO: Will watch for changes in these directories: ['/app']
langflow-backend-1 | INFO: Uvicorn running on http://0.0.0.0:7860 (Press CTRL+C to quit)
langflow-backend-1 | INFO: Started reloader process [1] using WatchFiles
langflow-frontend-1 |
langflow-frontend-1 | > langflow@0.1.2 start
langflow-frontend-1 | > react-scripts start
langflow-frontend-1 |
langflow-frontend-1 | (node:26) [DEP_WEBPACK_DEV_SERVER_ON_AFTER_SETUP_MIDDLEWARE] DeprecationWarning: 'onAfterSetupMiddleware' option is deprecated. Please use the 'setupMiddlewares' option.
langflow-frontend-1 | (Use node --trace-deprecation ... to show where the warning was created)
langflow-frontend-1 | (node:26) [DEP_WEBPACK_DEV_SERVER_ON_BEFORE_SETUP_MIDDLEWARE] DeprecationWarning: 'onBeforeSetupMiddleware' option is deprecated. Please use the 'setupMiddlewares' option.
langflow-frontend-1 | Starting the development server...
langflow-frontend-1 |
langflow-backend-1 | INFO: Started server process [8]
langflow-backend-1 | INFO: Waiting for application startup.
langflow-backend-1 | INFO: Application startup complete.
langflow-backend-1 | INFO: 172.18.0.1:46726 - "GET / HTTP/1.1" 404 Not Found
langflow-frontend-1 | Compiled with warnings.
langflow-frontend-1 |
langflow-frontend-1 | Failed to parse source map from 'data:application/json;base64,': SyntaxError: Unexpected end of JSON input
langflow-frontend-1 |
langflow-frontend-1 | [eslint]
langflow-frontend-1 | src/App.tsx
langflow-frontend-1 | Line 112:29: 'window.location.href' is assigned to itself no-self-assign
langflow-frontend-1 | Line 158:4: Using target="_blank" without rel="noreferrer" (which implies rel="noopener") is a security risk in older browsers: see https://mathiasbynens.github.io/rel-noopener/#recommendations react/jsx-no-target-blank
langflow-frontend-1 |
langflow-frontend-1 | src/alerts/alertDropDown/index.tsx
langflow-frontend-1 | Line 9:39: Unexpected empty object pattern no-empty-pattern
langflow-frontend-1 | Line 30:5: React Hook useEffect has a missing dependency: 'closePopUp'. Either include it or remove the dependency array react-hooks/exhaustive-deps
langflow-frontend-1 |
langflow-frontend-1 | src/alerts/error/index.tsx
langflow-frontend-1 | Line 2:23: 'XMarkIcon' is defined but never used @typescript-eslint/no-unused-vars
langflow-frontend-1 |
langflow-frontend-1 | src/alerts/notice/index.tsx
langflow-frontend-1 | Line 2:33: 'XMarkIcon' is defined but never used @typescript-eslint/no-unused-vars
langflow-frontend-1 |
langflow-frontend-1 | src/alerts/success/index.tsx
langflow-frontend-1 | Line 2:27: 'XMarkIcon' is defined but never used @typescript-eslint/no-unused-vars
langflow-frontend-1 |
langflow-frontend-1 | src/components/ExtraSidebarComponent/index.tsx
langflow-frontend-1 | Line 2:10: 'ChevronLeftIcon' is defined but never used @typescript-eslint/no-unused-vars
langflow-frontend-1 | Line 12:5: 'setIsStackedOpen' is assigned a value but never used @typescript-eslint/no-unused-vars
langflow-frontend-1 |
langflow-frontend-1 | src/components/chatComponent/chatMessage/index.tsx
langflow-frontend-1 | Line 1:10: 'ChatBubbleLeftEllipsisIcon' is defined but never used @typescript-eslint/no-unused-vars
langflow-frontend-1 | Line 1:70: 'PlusSmallIcon' is defined but never used @typescript-eslint/no-unused-vars
langflow-frontend-1 |
langflow-frontend-1 | src/components/chatComponent/index.tsx
langflow-frontend-1 | Line 6:2: 'XMarkIcon' is defined but never used @typescript-eslint/no-unused-vars
langflow-frontend-1 | Line 9:2: 'MouseEventHandler' is defined but never used @typescript-eslint/no-unused-vars
langflow-frontend-1 | Line 26:45: 'flows' is assigned a value but never used @typescript-eslint/no-unused-vars
langflow-frontend-1 | Line 26:52: 'tabIndex' is assigned a value but never used @typescript-eslint/no-unused-vars
langflow-frontend-1 |
langflow-frontend-1 | src/components/codeAreaComponent/index.tsx
langflow-frontend-1 | Line 5:8: 'TextAreaModal' is defined but never used @typescript-eslint/no-unused-vars
langflow-frontend-1 |
langflow-frontend-1 | src/components/inputFileComponent/index.tsx
langflow-frontend-1 | Line 22:5: React Hook useEffect has a missing dependency: 'onFileChange'. Either include it or remove the dependency array. If 'onFileChange' changes too often, find the parent component that defines it and wrap that definition in useCallback react-hooks/exhaustive-deps
langflow-frontend-1 |
langflow-frontend-1 | src/components/promptComponent/index.tsx
langflow-frontend-1 | Line 4:8: 'CodeAreaModal' is defined but never used @typescript-eslint/no-unused-vars
langflow-frontend-1 | Line 5:8: 'TextAreaModal' is defined but never used @typescript-eslint/no-unused-vars
langflow-frontend-1 |
langflow-frontend-1 | src/components/textAreaComponent/index.tsx
langflow-frontend-1 | Line 4:8: 'CodeAreaModal' is defined but never used @typescript-eslint/no-unused-vars
langflow-frontend-1 |
langflow-frontend-1 | src/contexts/tabsContext.tsx
langflow-frontend-1 | Line 49:5: React Hook useEffect has a missing dependency: 'save'. Either include it or remove the dependency array react-hooks/exhaustive-deps
langflow-frontend-1 |
langflow-frontend-1 | src/modals/exportModal/index.tsx
langflow-frontend-1 | Line 5:2: 'DocumentDuplicateIcon' is defined but never used @typescript-eslint/no-unused-vars
langflow-frontend-1 | Line 6:2: 'ComputerDesktopIcon' is defined but never used @typescript-eslint/no-unused-vars
langflow-frontend-1 | Line 18:12: 'setErrorData' is assigned a value but never used @typescript-eslint/no-unused-vars
langflow-frontend-1 | Line 101:74: Expected '!==' and instead saw '!=' eqeqeq
langflow-frontend-1 |
langflow-frontend-1 | src/modals/importModal/buttonBox/index.tsx
langflow-frontend-1 | Line 2:10: 'DocumentDuplicateIcon' is defined but never used @typescript-eslint/no-unused-vars
langflow-frontend-1 |
langflow-frontend-1 | src/modals/importModal/index.tsx
langflow-frontend-1 | Line 4:2: 'ArrowDownTrayIcon' is defined but never used @typescript-eslint/no-unused-vars
langflow-frontend-1 |
langflow-frontend-1 | src/modals/promptModal/index.tsx
langflow-frontend-1 | Line 17:10: 'dark' is assigned a value but never used @typescript-eslint/no-unused-vars
langflow-frontend-1 |
langflow-frontend-1 | src/pages/FlowPage/components/tabsManagerComponent/index.tsx
langflow-frontend-1 | Line 1:33: 'useState' is defined but never used @typescript-eslint/no-unused-vars
langflow-frontend-1 | Line 21:49: 'uploadFlow' is assigned a value but never used @typescript-eslint/no-unused-vars
langflow-frontend-1 | Line 21:61: 'downloadFlow' is assigned a value but never used @typescript-eslint/no-unused-vars
langflow-frontend-1 |
langflow-frontend-1 | src/pages/FlowPage/index.tsx
langflow-frontend-1 | Line 171:5: React Hook useCallback has missing dependencies: 'reactFlowInstance' and 'setEdges'. Either include them or remove the dependency array react-hooks/exhaustive-deps
langflow-frontend-1 | Line 179:7: React Hook useCallback has a missing dependency: 'setEdges'. Either include it or remove the dependency array react-hooks/exhaustive-deps
langflow-frontend-1 |
langflow-frontend-1 | Search for the keywords to learn more about each warning.
langflow-frontend-1 | To ignore, add // eslint-disable-next-line to the line before.
langflow-frontend-1 |
langflow-frontend-1 | WARNING in ./node_modules/ace-builds/src-noconflict/worker-coffee.js (./node_modules/file-loader/dist/cjs.js?esModule=false!./node_modules/ace-builds/src-noconflict/worker-coffee.js)
langflow-frontend-1 | Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
langflow-frontend-1 | Failed to parse source map from 'data:application/json;base64,': SyntaxError: Unexpected end of JSON input
langflow-frontend-1 |
langflow-frontend-1 | WARNING in [eslint]
langflow-frontend-1 | src/App.tsx
langflow-frontend-1 | Line 112:29: 'window.location.href' is assigned to itself no-self-assign
langflow-frontend-1 | Line 158:4: Using target="_blank" without rel="noreferrer" (which implies rel="noopener") is a security risk in older browsers: see https://mathiasbynens.github.io/rel-noopener/#recommendations react/jsx-no-target-blank
langflow-frontend-1 |
langflow-frontend-1 | src/alerts/alertDropDown/index.tsx
langflow-frontend-1 | Line 9:39: Unexpected empty object pattern no-empty-pattern
langflow-frontend-1 | Line 30:5: React Hook useEffect has a missing dependency: 'closePopUp'. Either include it or remove the dependency array react-hooks/exhaustive-deps
langflow-frontend-1 |
langflow-frontend-1 | src/alerts/error/index.tsx
langflow-frontend-1 | Line 2:23: 'XMarkIcon' is defined but never used @typescript-eslint/no-unused-vars
langflow-frontend-1 |
langflow-frontend-1 | src/alerts/notice/index.tsx
langflow-frontend-1 | Line 2:33: 'XMarkIcon' is defined but never used @typescript-eslint/no-unused-vars
langflow-frontend-1 |
langflow-frontend-1 | src/alerts/success/index.tsx
langflow-frontend-1 | Line 2:27: 'XMarkIcon' is defined but never used @typescript-eslint/no-unused-vars
langflow-frontend-1 |
langflow-frontend-1 | src/components/ExtraSidebarComponent/index.tsx
langflow-frontend-1 | Line 2:10: 'ChevronLeftIcon' is defined but never used @typescript-eslint/no-unused-vars
langflow-frontend-1 | Line 12:5: 'setIsStackedOpen' is assigned a value but never used @typescript-eslint/no-unused-vars
langflow-frontend-1 |
langflow-frontend-1 | src/components/chatComponent/chatMessage/index.tsx
langflow-frontend-1 | Line 1:10: 'ChatBubbleLeftEllipsisIcon' is defined but never used @typescript-eslint/no-unused-vars
langflow-frontend-1 | Line 1:70: 'PlusSmallIcon' is defined but never used @typescript-eslint/no-unused-vars
langflow-frontend-1 |
langflow-frontend-1 | src/components/chatComponent/index.tsx
langflow-frontend-1 | Line 6:2: 'XMarkIcon' is defined but never used @typescript-eslint/no-unused-vars
langflow-frontend-1 | Line 9:2: 'MouseEventHandler' is defined but never used @typescript-eslint/no-unused-vars
langflow-frontend-1 | Line 26:45: 'flows' is assigned a value but never used @typescript-eslint/no-unused-vars
langflow-frontend-1 | Line 26:52: 'tabIndex' is assigned a value but never used @typescript-eslint/no-unused-vars
langflow-frontend-1 |
langflow-frontend-1 | src/components/codeAreaComponent/index.tsx
langflow-frontend-1 | Line 5:8: 'TextAreaModal' is defined but never used @typescript-eslint/no-unused-vars
langflow-frontend-1 |
langflow-frontend-1 | src/components/inputFileComponent/index.tsx
langflow-frontend-1 | Line 22:5: React Hook useEffect has a missing dependency: 'onFileChange'. Either include it or remove the dependency array. If 'onFileChange' changes too often, find the parent component that defines it and wrap that definition in useCallback react-hooks/exhaustive-deps
langflow-frontend-1 |
langflow-frontend-1 | src/components/promptComponent/index.tsx
langflow-frontend-1 | Line 4:8: 'CodeAreaModal' is defined but never used @typescript-eslint/no-unused-vars
langflow-frontend-1 | Line 5:8: 'TextAreaModal' is defined but never used @typescript-eslint/no-unused-vars
langflow-frontend-1 |
langflow-frontend-1 | src/components/textAreaComponent/index.tsx
langflow-frontend-1 | Line 4:8: 'CodeAreaModal' is defined but never used @typescript-eslint/no-unused-vars
langflow-frontend-1 |
langflow-frontend-1 | src/contexts/tabsContext.tsx
langflow-frontend-1 | Line 49:5: React Hook useEffect has a missing dependency: 'save'. Either include it or remove the dependency array react-hooks/exhaustive-deps
langflow-frontend-1 |
langflow-frontend-1 | src/modals/exportModal/index.tsx
langflow-frontend-1 | Line 5:2: 'DocumentDuplicateIcon' is defined but never used @typescript-eslint/no-unused-vars
langflow-frontend-1 | Line 6:2: 'ComputerDesktopIcon' is defined but never used @typescript-eslint/no-unused-vars
langflow-frontend-1 | Line 18:12: 'setErrorData' is assigned a value but never used @typescript-eslint/no-unused-vars
langflow-frontend-1 | Line 101:74: Expected '!==' and instead saw '!=' eqeqeq
langflow-frontend-1 |
langflow-frontend-1 | src/modals/importModal/buttonBox/index.tsx
langflow-frontend-1 | Line 2:10: 'DocumentDuplicateIcon' is defined but never used @typescript-eslint/no-unused-vars
langflow-frontend-1 |
langflow-frontend-1 | src/modals/importModal/index.tsx
langflow-frontend-1 | Line 4:2: 'ArrowDownTrayIcon' is defined but never used @typescript-eslint/no-unused-vars
langflow-frontend-1 |
langflow-frontend-1 | src/modals/promptModal/index.tsx
langflow-frontend-1 | Line 17:10: 'dark' is assigned a value but never used @typescript-eslint/no-unused-vars
langflow-frontend-1 |
langflow-frontend-1 | src/pages/FlowPage/components/tabsManagerComponent/index.tsx
langflow-frontend-1 | Line 1:33: 'useState' is defined but never used @typescript-eslint/no-unused-vars
langflow-frontend-1 | Line 21:49: 'uploadFlow' is assigned a value but never used @typescript-eslint/no-unused-vars
langflow-frontend-1 | Line 21:61: 'downloadFlow' is assigned a value but never used @typescript-eslint/no-unused-vars
langflow-frontend-1 |
langflow-frontend-1 | src/pages/FlowPage/index.tsx
langflow-frontend-1 | Line 171:5: React Hook useCallback has missing dependencies: 'reactFlowInstance' and 'setEdges'. Either include them or remove the dependency array react-hooks/exhaustive-deps
langflow-frontend-1 | Line 179:7: React Hook useCallback has a missing dependency: 'setEdges'. Either include it or remove the dependency array react-hooks/exhaustive-deps
langflow-frontend-1 |
langflow-frontend-1 | webpack compiled with 2 warnings
langflow-frontend-1 | No issues found.
langflow-frontend-1 | Compiling...
langflow-frontend-1 | Compiled with warnings.
langflow-frontend-1 |
langflow-frontend-1 | Failed to parse source map from 'data:application/json;base64,': SyntaxError: Unexpected end of JSON input
langflow-frontend-1 |
langflow-frontend-1 | [eslint]
langflow-frontend-1 | src/App.tsx
langflow-frontend-1 | Line 112:29: 'window.location.href' is assigned to itself no-self-assign
langflow-frontend-1 | Line 158:4: Using target="_blank" without rel="noreferrer" (which implies rel="noopener") is a security risk in older browsers: see https://mathiasbynens.github.io/rel-noopener/#recommendations react/jsx-no-target-blank
langflow-frontend-1 |
langflow-frontend-1 | src/alerts/alertDropDown/index.tsx
langflow-frontend-1 | Line 9:39: Unexpected empty object pattern no-empty-pattern
langflow-frontend-1 | Line 30:5: React Hook useEffect has a missing dependency: 'closePopUp'. Either include it or remove the dependency array react-hooks/exhaustive-deps
langflow-frontend-1 |
langflow-frontend-1 | src/alerts/error/index.tsx
langflow-frontend-1 | Line 2:23: 'XMarkIcon' is defined but never used @typescript-eslint/no-unused-vars
langflow-frontend-1 |
langflow-frontend-1 | src/alerts/notice/index.tsx
langflow-frontend-1 | Line 2:33: 'XMarkIcon' is defined but never used @typescript-eslint/no-unused-vars
langflow-frontend-1 |
langflow-frontend-1 | src/alerts/success/index.tsx
langflow-frontend-1 | Line 2:27: 'XMarkIcon' is defined but never used @typescript-eslint/no-unused-vars
langflow-frontend-1 |
langflow-frontend-1 | src/components/ExtraSidebarComponent/index.tsx
langflow-frontend-1 | Line 2:10: 'ChevronLeftIcon' is defined but never used @typescript-eslint/no-unused-vars
langflow-frontend-1 | Line 12:5: 'setIsStackedOpen' is assigned a value but never used @typescript-eslint/no-unused-vars
langflow-frontend-1 |
langflow-frontend-1 | src/components/chatComponent/chatMessage/index.tsx
langflow-frontend-1 | Line 1:10: 'ChatBubbleLeftEllipsisIcon' is defined but never used @typescript-eslint/no-unused-vars
langflow-frontend-1 | Line 1:70: 'PlusSmallIcon' is defined but never used @typescript-eslint/no-unused-vars
langflow-frontend-1 |
langflow-frontend-1 | src/components/chatComponent/index.tsx
langflow-frontend-1 | Line 6:2: 'XMarkIcon' is defined but never used @typescript-eslint/no-unused-vars
langflow-frontend-1 | Line 9:2: 'MouseEventHandler' is defined but never used @typescript-eslint/no-unused-vars
langflow-frontend-1 | Line 26:45: 'flows' is assigned a value but never used @typescript-eslint/no-unused-vars
langflow-frontend-1 | Line 26:52: 'tabIndex' is assigned a value but never used @typescript-eslint/no-unused-vars
langflow-frontend-1 |
langflow-frontend-1 | src/components/codeAreaComponent/index.tsx
langflow-frontend-1 | Line 5:8: 'TextAreaModal' is defined but never used @typescript-eslint/no-unused-vars
langflow-frontend-1 |
langflow-frontend-1 | src/components/inputFileComponent/index.tsx
langflow-frontend-1 | Line 22:5: React Hook useEffect has a missing dependency: 'onFileChange'. Either include it or remove the dependency array. If 'onFileChange' changes too often, find the parent component that defines it and wrap that definition in useCallback react-hooks/exhaustive-deps
langflow-frontend-1 |
langflow-frontend-1 | src/components/promptComponent/index.tsx
langflow-frontend-1 | Line 4:8: 'CodeAreaModal' is defined but never used @typescript-eslint/no-unused-vars
langflow-frontend-1 | Line 5:8: 'TextAreaModal' is defined but never used @typescript-eslint/no-unused-vars
langflow-frontend-1 |
langflow-frontend-1 | src/components/textAreaComponent/index.tsx
langflow-frontend-1 | Line 4:8: 'CodeAreaModal' is defined but never used @typescript-eslint/no-unused-vars
langflow-frontend-1 |
langflow-frontend-1 | src/contexts/tabsContext.tsx
langflow-frontend-1 | Line 49:5: React Hook useEffect has a missing dependency: 'save'. Either include it or remove the dependency array react-hooks/exhaustive-deps
langflow-frontend-1 |
langflow-frontend-1 | src/modals/exportModal/index.tsx
langflow-frontend-1 | Line 5:2: 'DocumentDuplicateIcon' is defined but never used @typescript-eslint/no-unused-vars
langflow-frontend-1 | Line 6:2: 'ComputerDesktopIcon' is defined but never used @typescript-eslint/no-unused-vars
langflow-frontend-1 | Line 18:12: 'setErrorData' is assigned a value but never used @typescript-eslint/no-unused-vars
langflow-frontend-1 | Line 101:74: Expected '!==' and instead saw '!=' eqeqeq
langflow-frontend-1 |
langflow-frontend-1 | src/modals/importModal/buttonBox/index.tsx
langflow-frontend-1 | Line 2:10: 'DocumentDuplicateIcon' is defined but never used @typescript-eslint/no-unused-vars
langflow-frontend-1 |
langflow-frontend-1 | src/modals/importModal/index.tsx
langflow-frontend-1 | Line 4:2: 'ArrowDownTrayIcon' is defined but never used @typescript-eslint/no-unused-vars
langflow-frontend-1 |
langflow-frontend-1 | src/modals/promptModal/index.tsx
langflow-frontend-1 | Line 17:10: 'dark' is assigned a value but never used @typescript-eslint/no-unused-vars
langflow-frontend-1 |
langflow-frontend-1 | src/pages/FlowPage/components/tabsManagerComponent/index.tsx
langflow-frontend-1 | Line 1:33: 'useState' is defined but never used @typescript-eslint/no-unused-vars
langflow-frontend-1 | Line 21:49: 'uploadFlow' is assigned a value but never used @typescript-eslint/no-unused-vars
langflow-frontend-1 | Line 21:61: 'downloadFlow' is assigned a value but never used @typescript-eslint/no-unused-vars
langflow-frontend-1 |
langflow-frontend-1 | src/pages/FlowPage/index.tsx
langflow-frontend-1 | Line 171:5: React Hook useCallback has missing dependencies: 'reactFlowInstance' and 'setEdges'. Either include them or remove the dependency array react-hooks/exhaustive-deps
langflow-frontend-1 | Line 179:7: React Hook useCallback has a missing dependency: 'setEdges'. Either include it or remove the dependency array react-hooks/exhaustive-deps
langflow-frontend-1 |
langflow-frontend-1 | Search for the keywords to learn more about each warning.
langflow-frontend-1 | To ignore, add // eslint-disable-next-line to the line before.
langflow-frontend-1 |
langflow-frontend-1 | WARNING in ./node_modules/ace-builds/src-noconflict/worker-coffee.js (./node_modules/file-loader/dist/cjs.js?esModule=false!./node_modules/ace-builds/src-noconflict/worker-coffee.js)
langflow-frontend-1 | Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
langflow-frontend-1 | Failed to parse source map from 'data:application/json;base64,': SyntaxError: Unexpected end of JSON input
langflow-frontend-1 |
langflow-frontend-1 | WARNING in [eslint]
langflow-frontend-1 | src/App.tsx
langflow-frontend-1 | Line 112:29: 'window.location.href' is assigned to itself no-self-assign
langflow-frontend-1 | Line 158:4: Using target="_blank" without rel="noreferrer" (which implies rel="noopener") is a security risk in older browsers: see https://mathiasbynens.github.io/rel-noopener/#recommendations react/jsx-no-target-blank
langflow-frontend-1 |
langflow-frontend-1 | src/alerts/alertDropDown/index.tsx
langflow-frontend-1 | Line 9:39: Unexpected empty object pattern no-empty-pattern
langflow-frontend-1 | Line 30:5: React Hook useEffect has a missing dependency: 'closePopUp'. Either include it or remove the dependency array react-hooks/exhaustive-deps
langflow-frontend-1 |
langflow-frontend-1 | src/alerts/error/index.tsx
langflow-frontend-1 | Line 2:23: 'XMarkIcon' is defined but never used @typescript-eslint/no-unused-vars
langflow-frontend-1 |
langflow-frontend-1 | src/alerts/notice/index.tsx
langflow-frontend-1 | Line 2:33: 'XMarkIcon' is defined but never used @typescript-eslint/no-unused-vars
langflow-frontend-1 |
langflow-frontend-1 | src/alerts/success/index.tsx
langflow-frontend-1 | Line 2:27: 'XMarkIcon' is defined but never used @typescript-eslint/no-unused-vars
langflow-frontend-1 |
langflow-frontend-1 | src/components/ExtraSidebarComponent/index.tsx
langflow-frontend-1 | Line 2:10: 'ChevronLeftIcon' is defined but never used @typescript-eslint/no-unused-vars
langflow-frontend-1 | Line 12:5: 'setIsStackedOpen' is assigned a value but never used @typescript-eslint/no-unused-vars
langflow-frontend-1 |
langflow-frontend-1 | src/components/chatComponent/chatMessage/index.tsx
langflow-frontend-1 | Line 1:10: 'ChatBubbleLeftEllipsisIcon' is defined but never used @typescript-eslint/no-unused-vars
langflow-frontend-1 | Line 1:70: 'PlusSmallIcon' is defined but never used @typescript-eslint/no-unused-vars
langflow-frontend-1 |
langflow-frontend-1 | src/components/chatComponent/index.tsx
langflow-frontend-1 | Line 6:2: 'XMarkIcon' is defined but never used @typescript-eslint/no-unused-vars
langflow-frontend-1 | Line 9:2: 'MouseEventHandler' is defined but never used @typescript-eslint/no-unused-vars
langflow-frontend-1 | Line 26:45: 'flows' is assigned a value but never used @typescript-eslint/no-unused-vars
langflow-frontend-1 | Line 26:52: 'tabIndex' is assigned a value but never used @typescript-eslint/no-unused-vars
langflow-frontend-1 |
langflow-frontend-1 | src/components/codeAreaComponent/index.tsx
langflow-frontend-1 | Line 5:8: 'TextAreaModal' is defined but never used @typescript-eslint/no-unused-vars
langflow-frontend-1 |
langflow-frontend-1 | src/components/inputFileComponent/index.tsx
langflow-frontend-1 | Line 22:5: React Hook useEffect has a missing dependency: 'onFileChange'. Either include it or remove the dependency array. If 'onFileChange' changes too often, find the parent component that defines it and wrap that definition in useCallback react-hooks/exhaustive-deps
langflow-frontend-1 |
langflow-frontend-1 | src/components/promptComponent/index.tsx
langflow-frontend-1 | Line 4:8: 'CodeAreaModal' is defined but never used @typescript-eslint/no-unused-vars
langflow-frontend-1 | Line 5:8: 'TextAreaModal' is defined but never used @typescript-eslint/no-unused-vars
langflow-frontend-1 |
langflow-frontend-1 | src/components/textAreaComponent/index.tsx
langflow-frontend-1 | Line 4:8: 'CodeAreaModal' is defined but never used @typescript-eslint/no-unused-vars
langflow-frontend-1 |
langflow-frontend-1 | src/contexts/tabsContext.tsx
langflow-frontend-1 | Line 49:5: React Hook useEffect has a missing dependency: 'save'. Either include it or remove the dependency array react-hooks/exhaustive-deps
langflow-frontend-1 |
langflow-frontend-1 | src/modals/exportModal/index.tsx
langflow-frontend-1 | Line 5:2: 'DocumentDuplicateIcon' is defined but never used @typescript-eslint/no-unused-vars
langflow-frontend-1 | Line 6:2: 'ComputerDesktopIcon' is defined but never used @typescript-eslint/no-unused-vars
langflow-frontend-1 | Line 18:12: 'setErrorData' is assigned a value but never used @typescript-eslint/no-unused-vars
langflow-frontend-1 | Line 101:74: Expected '!==' and instead saw '!=' eqeqeq
langflow-frontend-1 |
langflow-frontend-1 | src/modals/importModal/buttonBox/index.tsx
langflow-frontend-1 | Line 2:10: 'DocumentDuplicateIcon' is defined but never used @typescript-eslint/no-unused-vars
langflow-frontend-1 |
langflow-frontend-1 | src/modals/importModal/index.tsx
langflow-frontend-1 | Line 4:2: 'ArrowDownTrayIcon' is defined but never used @typescript-eslint/no-unused-vars
langflow-frontend-1 |
langflow-frontend-1 | src/modals/promptModal/index.tsx
langflow-frontend-1 | Line 17:10: 'dark' is assigned a value but never used @typescript-eslint/no-unused-vars
langflow-frontend-1 |
langflow-frontend-1 | src/pages/FlowPage/components/tabsManagerComponent/index.tsx
langflow-frontend-1 | Line 1:33: 'useState' is defined but never used @typescript-eslint/no-unused-vars
langflow-frontend-1 | Line 21:49: 'uploadFlow' is assigned a value but never used @typescript-eslint/no-unused-vars
langflow-frontend-1 | Line 21:61: 'downloadFlow' is assigned a value but never used @typescript-eslint/no-unused-vars
langflow-frontend-1 |
langflow-frontend-1 | src/pages/FlowPage/index.tsx
langflow-frontend-1 | Line 171:5: React Hook useCallback has missing dependencies: 'reactFlowInstance' and 'setEdges'. Either include them or remove the dependency array react-hooks/exhaustive-deps
langflow-frontend-1 | Line 179:7: React Hook useCallback has a missing dependency: 'setEdges'. Either include it or remove the dependency array react-hooks/exhaustive-deps
langflow-frontend-1 |
langflow-frontend-1 | webpack compiled with 2 warnings
langflow-frontend-1 | No issues found.
langflow-backend-1 | INFO: 172.18.0.1:57166 - "GET / HTTP/1.1" 404 Not Found
langflow-backend-1 | INFO: 172.18.0.1:57166 - "GET / HTTP/1.1" 404 Not Found
langflow-frontend-1 | Proxy error: Could not proxy request /all from localhost:3000 to http://localhost:5003.
langflow-frontend-1 | See https://nodejs.org/api/errors.html#errors_common_system_errors for more information (ECONNREFUSED).
langflow-frontend-1 |
langflow-frontend-1 | Proxy error: Could not proxy request /all from 0.0.0.0:3000 to http://localhost:5003.
langflow-frontend-1 | See https://nodejs.org/api/errors.html#errors_common_system_errors for more information (ECONNREFUSED).
langflow-frontend-1 |
langflow-frontend-1 | Proxy error: Could not proxy request /all from localhost:3000 to http://localhost:5003.
langflow-frontend-1 | See https://nodejs.org/api/errors.html#errors_common_system_errors for more information (ECONNREFUSED).
langflow-frontend-1 |
langflow-backend-1 | INFO: 172.18.0.1:56296 - "GET / HTTP/1.1" 404 Not Found
langflow-backend-1 | INFO: 172.18.0.1:56296 - "GET / HTTP/1.1" 404 Not Found
langflow-backend-1 | INFO: 172.18.0.1:56296 - "GET / HTTP/1.1" 404 Not Found
langflow-backend-1 | INFO: 172.18.0.1:56296 - "GET / HTTP/1.1" 404 Not Found
langflow-backend-1 | INFO: 172.18.0.1:56296 - "GET / HTTP/1.1" 404 Not Found
langflow-backend-1 | INFO: 172.18.0.1:56296 - "GET / HTTP/1.1" 404 Not Found
langflow-backend-1 | INFO: 172.18.0.1:56296 - "GET / HTTP/1.1" 404 Not Found
langflow-backend-1 | INFO: 172.18.0.1:58562 - "GET / HTTP/1.1" 404 Not Found
langflow-frontend-1 | Proxy error: Could not proxy request /all from 0.0.0.0:3000 to http://localhost:5003.
langflow-frontend-1 | See https://nodejs.org/api/errors.html#errors_common_system_errors for more information (ECONNREFUSED).

@ogabrielluiz
Copy link
Contributor

ogabrielluiz commented Apr 13, 2023

@lolxdmainkaisemaanlu your problem is the proxy.
You might need to run make dev build=1 to get the new proxy. http://backend:7860 is the default proxy to use with make dev

@kaleavess
Copy link

Hi @yoazmenda I am trying to load the llama.cpp model in the langflow(not in docker) however it didnt recognize the path. Where is yours locate?

@yoazmenda
Copy link
Contributor Author

yoazmenda commented May 24, 2023

Hi @kaleavess ,
I simply created a directory called "models" in the project root and point there "./models/model_name.bin".
If you are using Docker, make sure to mount this model file as well.

If you still can't manage, can you share more details about your setup and/or and error details?

@kaleavess
Copy link

kaleavess commented May 25, 2023

Problem Solved!! It was a model issue!! Thanks @yoazmenda a lot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants