Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Mixtral Promptflow Deploy
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
JamiesonLab
Mixtral Promptflow Deploy
Commits
4dde5434
Commit
4dde5434
authored
1 year ago
by
AmeerHamza Shakur
Browse files
Options
Downloads
Patches
Plain Diff
small update
parent
d3ab0d15
Branches
Branches containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
promptflow/promptflow
+1
-0
1 addition, 0 deletions
promptflow/promptflow
serve_mixtralh100.sh
+19
-0
19 additions, 0 deletions
serve_mixtralh100.sh
test.py
+7
-3
7 additions, 3 deletions
test.py
with
27 additions
and
3 deletions
promptflow
@
82a6dbdd
Subproject commit 82a6dbdd1d23ee7c2e5179952f9005b927d4877c
This diff is collapsed.
Click to expand it.
serve_mixtralh100.sh
0 → 100755
+
19
−
0
View file @
4dde5434
#!/bin/bash
#SBATCH --job-name=openai_vllm
#SBATCH --nodes=1
#SBATCH --cpus-per-task 128
#SBATCH --gres=gpu:4
#SBATCH --partition=GPU4h100
#SBATCH --time=72:00:00
set
-x
module load cuda121
conda activate vllm-env
export
CUDA_VISIBLE_DEVICES
=
0,1,2,3
srun
--cpus-per-task
128 python
-m
vllm.entrypoints.openai.api_server
\
--model
/archive/shared/sim_center/shared/mixtral/data/Mixtral-8x7B-Instruct-v0.1
\
--chat-template
/archive/shared/sim_center/shared/mixtral/vllm/template_mistral.jinja
\
--trust-remote-code
--dtype
float16
--tensor-parallel-size
1
--max-model-len
8192
This diff is collapsed.
Click to expand it.
test.py
+
7
−
3
View file @
4dde5434
...
@@ -3,10 +3,14 @@ from openai import OpenAI
...
@@ -3,10 +3,14 @@ from openai import OpenAI
# Modify OpenAI's API key and API base to use vLLM's API server.
# Modify OpenAI's API key and API base to use vLLM's API server.
openai_api_key
=
"
EMPTY
"
openai_api_key
=
"
EMPTY
"
openai_api_base
=
"
http://172.18.227.71:8000/v1
"
openai_api_base
=
"
http://172.18.227.71:8000/v1
"
model
=
"
/archive/shared/sim_center/shared/mixtral/data/Mixtral-8x7B-Instruct-v0.1
"
client
=
OpenAI
(
client
=
OpenAI
(
api_key
=
openai_api_key
,
api_key
=
openai_api_key
,
base_url
=
openai_api_base
,
base_url
=
openai_api_base
,
)
)
completion
=
client
.
completions
.
create
(
model
=
"
/archive/shared/sim_center/shared/mixtral/data/Mixtral-8x7B-Instruct-v0.1
"
,
prompt_text
=
"
The coolest town near Dallas is
"
prompt
=
"
San Francisco is a
"
)
completion
=
client
.
completions
.
create
(
model
=
model
,
print
(
"
Completion result:
"
,
completion
)
prompt
=
prompt_text
,
max_tokens
=
50
,
temperature
=
0.5
)
print
(
"
Completion result:
"
,
completion
)
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
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