Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
localai-model-gallery
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
KIT
AIFB
Betriebliche Informationssysteme
Infrastruktur
LocalAI
localai-model-gallery
Commits
12693fdc
Commit
12693fdc
authored
6 months ago
by
Martin Forell
Browse files
Options
Downloads
Patches
Plain Diff
test vllm
parent
fbd39490
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dev-phi-3-vllm.yaml
+78
-0
78 additions, 0 deletions
dev-phi-3-vllm.yaml
index.yaml
+6
-0
6 additions, 0 deletions
index.yaml
with
84 additions
and
0 deletions
dev-phi-3-vllm.yaml
0 → 100644
+
78
−
0
View file @
12693fdc
name
:
"
hermes-vllm"
config_file
:
|
backend: vllm
parameters:
max_tokens: 8192
model: "NousResearch/Hermes-3-Llama-3.1-8B"
context_size: 8192
stopwords
:
-
"
<|im_end|>"
-
"
<dummy32000>"
-
"
<|eot_id|>"
-
"
<|end_of_text|>"
function
:
disable_no_action
:
true
grammar
:
# Uncomment the line below to enable grammar matching for JSON results if the model is breaking
# the output. This will make the model more accurate and won't break the JSON output.
# This however, will make parallel_calls not functional (it is a known bug)
# mixed_mode: true
disable
:
true
parallel_calls
:
true
expect_strings_after_json
:
true
json_regex_match
:
-
"
(?s)<tool_call>(.*?)</tool_call>"
-
"
(?s)<tool_call>(.*)"
capture_llm_results
:
-
(?s)<scratchpad>(.*?)</scratchpad>
replace_llm_results
:
-
key
:
(?s)<scratchpad>(.*?)</scratchpad>
value
:
"
"
template
:
use_tokenizer_template
:
true
chat
:
|
{{.Input -}}
<|im_start|>assistant
chat_message
:
|
<|im_start|>{{if eq .RoleName "assistant"}}assistant{{else if eq .RoleName "system"}}system{{else if eq .RoleName "tool"}}tool{{else if eq .RoleName "user"}}user{{end}}
{{- if .FunctionCall }}
<tool_call>
{{- else if eq .RoleName "tool" }}
<tool_response>
{{- end }}
{{- if .Content}}
{{.Content }}
{{- end }}
{{- if .FunctionCall}}
{{toJson .FunctionCall}}
{{- end }}
{{- if .FunctionCall }}
</tool_call>
{{- else if eq .RoleName "tool" }}
</tool_response>
{{- end }}<|im_end|>
completion
:
|
{{.Input}}
function
:
|
<|im_start|>system
You are a function calling AI model.
Here are the available tools:
<tools>
{{range .Functions}}
{'type': 'function', 'function': {'name': '{{.Name}}', 'description': '{{.Description}}', 'parameters': {{toJson .Parameters}} }}
{{end}}
</tools>
You should call the tools provided to you sequentially
Please use <scratchpad> XML tags to record your reasoning and planning before you call the functions as follows:
<scratchpad>
{step-by-step reasoning and plan in bullet points}
</scratchpad>
For each function call return a json object with function name and arguments within <tool_call> XML tags as follows:
<tool_call>
{"arguments": <args-dict>, "name": <function-name>}
</tool_call><|im_end|>
{{.Input -}}
<|im_start|>assistant
\ No newline at end of file
This diff is collapsed.
Click to expand it.
index.yaml
+
6
−
0
View file @
12693fdc
...
...
@@ -189,6 +189,12 @@
-
2B Model
-
Code completion
-
url
:
https://gitlab.kit.edu/kit/aifb/BIS/infrastruktur/localai/localai-model-gallery/-/raw/main/dev-phi-3-vllm.yaml
name
:
hermes-vllm
tags
:
-
gpu
-
url
:
https://gitlab.kit.edu/kit/aifb/BIS/infrastruktur/localai/localai-model-gallery/-/raw/main/dev-testgen.yaml
name
:
dev-testgen
tags
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment