Comments (10)
Could you confirm if you want to modify the container's 'models' folder from the host machine? If so, I think you should consider using a Docker Mount Volume.
The data within the container should be sandboxed after it is deployed.
from jan.
It looks like there are API commands to stop and start models, however, my models are still empty
from jan.
Walking through this code to figure out why GET /models
returns an empty array. I'll add console.debugs everywhere and post the result
from jan.
Never mind, I cannot even get to that function. I get booted at getBuilder
:
The output of that console.debug
is the following:
When I docker exec -it <containerId> /bin/bash
into the instance and run the following command, the models
folder is not there:
Before I ran the docker, I created a symlink in jan/server/build/models
to point to jan/models
, yet, it appears they did not copy
from jan.
I can finally get the list populated:
cd jan
docker-compose --profile cpu-fs up -d
docker exec -it $(docker ps -q --filter ancestor=jan:latest) /bin/bash
# Once in docker, run:
cd server/build/jan/ && ln -s ../../../models models && exit
Attempting to start the model now...
from jan.
I can finally start the Mistral model with the following command:
curl -X PUT 'http://localhost:1337/v1/models/mistral-ins-7b-q4/start' -H 'Accept: application/json' -H 'Content-Type: application/json' -d '{}'
Output: {"message":"Model mistral-ins-7b-q4 started"}
In summary, to fix this problem at the developer level:
- Add a symlink in
/app/server/build/jan
called models and point it to/app/models
during the Docker build process (Dockerfile
andDockerfile.gpu
) - Update Swagger YAMLs and documentation to expose the
PUT /model/:model_id/start
andPUT /model/:model_id/stop
commands - Update Getting Started documentation to point out that the models have to be started when in Local Server mode
from jan.
I'll provide updates on how to bake this solution into the Dockerfiles at some point in the close future
And probably pack that into a PR
from jan.
Adding this after the COPY commands in the Dockerfiles should work (Branching appears protected)
RUN cd server/build/jan/ && ln -s ../../../models models
from jan.
Could you confirm if you want to modify the container's 'models' folder from the host machine? If so, I think you should consider using a Docker Mount Volume.
The data within the container should be sandboxed after it is deployed.
I'll check to see if VOLUMES works with and without the symlink
from jan.
Please let us know if this works, @HyperCrowd. We will close it as not planned for now. Please feel free to reopen it.
from jan.
Related Issues (20)
- bug: Token Retrieval for HTML and CSS is not arriving to the platform or getting rendered correctly with GPT-4o
- feat: Windows on ARM support (with Snapdragon X series NPU)
- bug: local models won't start HOT 3
- add links to the sources of models when i'm looking at them in Jan HOT 1
- feat: Don't hide the vertical scroll bar
- feat: Save sidebars toggled state
- bug: [Manual inported model not visible] HOT 5
- bug: Model Hub is not fully responsive
- Improve Jan's response readability
- bug: Downloading a model using huggingface url doesnt work on mac with the latest build. HOT 2
- bug: groq not showing all available model
- bug: docker instance theme is incomplete / transparent
- feat: Add local import file gguf
- bug: Doesn't load local models using unicode paths? HOT 1
- bug: Add Setting options to dropdown menu
- feat: Add "Delete Current Chat" shortcut
- bug: New chat button not working
- feat: [DESCRIPTION]
- bug: Unable to Run Mistral Nemo
- Jan.ai onpremise server install sidebar gives error: tags and toLowerCase
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jan.