-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…nstructions Issue/#41/add dev chat server instructions
- Loading branch information
Showing
7 changed files
with
96 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
FROM python:3.11 | ||
|
||
# Set working directory | ||
WORKDIR /app | ||
|
||
RUN pip install --upgrade pip | ||
RUN pip install --no-cache-dir instructlab==0.16.1 | ||
|
||
# Copy project files to the working directory | ||
COPY config.yaml . | ||
|
||
# Download the merlinite model | ||
RUN ilab download | ||
|
||
# Copy project files to the working directory | ||
COPY . . | ||
|
||
EXPOSE 8000 | ||
|
||
# Run the chat server with the specified model family and model file | ||
CMD ["ilab", "serve", "--model-family", "merlinite", "--model-path", "models/merlinite-7b-lab-Q4_K_M.gguf"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
chat: | ||
context: default | ||
greedy_mode: false | ||
logs_dir: data/chatlogs | ||
max_tokens: null | ||
model: models/merlinite-7b-lab-Q4_K_M.gguf | ||
session: null | ||
vi_mode: false | ||
visible_overflow: true | ||
general: | ||
log_level: INFO | ||
generate: | ||
chunk_word_count: 1000 | ||
model: models/merlinite-7b-lab-Q4_K_M.gguf | ||
num_cpus: 10 | ||
num_instructions: 100 | ||
output_dir: generated | ||
prompt_file: prompt.txt | ||
seed_file: seed_tasks.json | ||
taxonomy_base: origin/main | ||
taxonomy_path: taxonomy | ||
serve: | ||
gpu_layers: -1 | ||
host_port: 0.0.0.0:8000 | ||
max_ctx_size: 4096 | ||
model_path: models/merlinite-7b-lab-Q4_K_M.gguf |