mirror of
https://github.com/ParisNeo/lollms.git
synced 2025-04-08 11:24:14 +00:00
upgraded
This commit is contained in:
parent
fc1d936c2c
commit
b8d974c41e
@ -88,8 +88,8 @@ async def reload_binding(request: Request):
|
||||
|
||||
try:
|
||||
data = (await request.json())
|
||||
print(f"Roloading binding selected : {data['binding_name']}")
|
||||
lollmsElfServer.config["binding_name"]=data['binding_name']
|
||||
print(f"Roloading binding selected : {data['name']}")
|
||||
lollmsElfServer.config["binding_name"]=data['name']
|
||||
if lollmsElfServer.binding:
|
||||
lollmsElfServer.binding.destroy_model()
|
||||
lollmsElfServer.binding = None
|
||||
@ -102,6 +102,7 @@ async def reload_binding(request: Request):
|
||||
lollmsElfServer.model = None
|
||||
lollmsElfServer.config.save_config()
|
||||
ASCIIColors.green("Binding loaded successfully")
|
||||
return {"status":True}
|
||||
except Exception as ex:
|
||||
ASCIIColors.error(f"Couldn't build binding: [{ex}]")
|
||||
trace_exception(ex)
|
||||
|
@ -1,2 +1,16 @@
|
||||
#!/bin/sh
|
||||
conda create -n myenv python=3.9 -y && conda activate myenv && pip install vllm --user
|
||||
#!/bin/bash
|
||||
|
||||
# Check if miniconda3/bin/conda exists
|
||||
if [ -e "$HOME/miniconda3/bin/conda" ]; then
|
||||
echo "Conda is installed!"
|
||||
else
|
||||
echo "Conda is not installed. Please install it first."
|
||||
echo Installing conda
|
||||
curl -LOk https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
|
||||
./Miniconda3-latest-Linux-x86_64.sh -b
|
||||
$HOME/miniconda3/bin/conda init
|
||||
echo Done
|
||||
fi
|
||||
PATH="$HOME/miniconda3/bin:$PATH"
|
||||
export PATH
|
||||
conda create -n vllm python=3.9 -y && conda activate vllm && pip install vllm --user
|
@ -1,8 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
cd ~/vllm
|
||||
|
||||
python -m vllm.entrypoints.openai.api_server --model %1
|
||||
PATH="$HOME/miniconda3/bin:$PATH"
|
||||
export PATH
|
||||
conda activate vllm && python -m vllm.entrypoints.openai.api_server --model %1
|
||||
|
||||
# Wait for all background processes to finish
|
||||
wait
|
Loading…
x
Reference in New Issue
Block a user