Skip to content

Commit

Permalink
cleaned examples and added vllm example
Browse files Browse the repository at this point in the history
  • Loading branch information
B0-B committed Oct 9, 2024
1 parent b8543ab commit 343280e
Show file tree
Hide file tree
Showing 12 changed files with 9 additions and 209 deletions.
27 changes: 0 additions & 27 deletions examples/assistant.py

This file was deleted.

17 changes: 0 additions & 17 deletions examples/bidenObamaTrump.py

This file was deleted.

35 changes: 0 additions & 35 deletions examples/chatGPT.py

This file was deleted.

36 changes: 0 additions & 36 deletions examples/gpt-llama-3-8B-cpu.py

This file was deleted.

33 changes: 0 additions & 33 deletions examples/gpt-llama-3-8B-gpu.py

This file was deleted.

File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
#!/usr/bin/env python3

'''
A GPT-like example of LLama-3-8B chat accelerated with vLLM's flash-attn. backend.
'''
from blowtorch import client, console

chat_bot = client(hugging_face_path='MaziyarPanahi/Meta-Llama-3-8B-Instruct-GPTQ',
attention=True,
attention=True, # setting attention to true
name='llama-bot',
chat_format='llama-3',
device='gpu')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@

from blowtorch import client, console, webUI

cl = client('llama-2-7b-chat.Q2_K.gguf',
'TheBloke/Llama-2-7B-Chat-GGUF',
cl = client('Meta-Llama-3-8B-Instruct.Q2_K.gguf',
'MaziyarPanahi/Meta-Llama-3-8B-Instruct-GGUF',
name='Yoda',
device='cpu',
model_type="llama",
Expand All @@ -29,5 +29,4 @@
top_k=60,
)

webUI(cl)
# console(cl)
webUI(cl)
File renamed without changes.
33 changes: 0 additions & 33 deletions examples/scenario.py

This file was deleted.

23 changes: 0 additions & 23 deletions examples/vicuna7B.py

This file was deleted.

0 comments on commit 343280e

Please sign in to comment.