Husnain commited on
Commit
704a7ab
1 Parent(s): 7f1e89a

HF-LLM-API

Browse files
Files changed (1) hide show
  1. networks/message_streamer.py +3 -0
networks/message_streamer.py CHANGED
@@ -12,6 +12,7 @@ class MessageStreamer:
12
  "mixtral-8x7b": "mistralai/Mixtral-8x7B-Instruct-v0.1", # 72.62, fast [Recommended]
13
  "mistral-7b": "mistralai/Mistral-7B-Instruct-v0.2", # 65.71, fast
14
  "nous-mixtral-8x7b": "NousResearch/Nous-Hermes-2-Mixtral-8x7B-DPO",
 
15
  # "openchat-3.5": "openchat/openchat-3.5-1210", # 68.89, fast
16
  # "zephyr-7b-beta": "HuggingFaceH4/zephyr-7b-beta", # ❌ Too Slow
17
  # "llama-70b": "meta-llama/Llama-2-70b-chat-hf", # ❌ Require Pro User
@@ -24,12 +25,14 @@ class MessageStreamer:
24
  "mistral-7b": "</s>",
25
  "nous-mixtral-8x7b": "<|im_end|>",
26
  "openchat-3.5": "<|end_of_turn|>",
 
27
  }
28
  TOKEN_LIMIT_MAP = {
29
  "mixtral-8x7b": 32768,
30
  "mistral-7b": 32768,
31
  "nous-mixtral-8x7b": 32768,
32
  "openchat-3.5": 8192,
 
33
  }
34
  TOKEN_RESERVED = 100
35
 
 
12
  "mixtral-8x7b": "mistralai/Mixtral-8x7B-Instruct-v0.1", # 72.62, fast [Recommended]
13
  "mistral-7b": "mistralai/Mistral-7B-Instruct-v0.2", # 65.71, fast
14
  "nous-mixtral-8x7b": "NousResearch/Nous-Hermes-2-Mixtral-8x7B-DPO",
15
+ "gemma-7b": "google/gemma-7b-it",
16
  # "openchat-3.5": "openchat/openchat-3.5-1210", # 68.89, fast
17
  # "zephyr-7b-beta": "HuggingFaceH4/zephyr-7b-beta", # ❌ Too Slow
18
  # "llama-70b": "meta-llama/Llama-2-70b-chat-hf", # ❌ Require Pro User
 
25
  "mistral-7b": "</s>",
26
  "nous-mixtral-8x7b": "<|im_end|>",
27
  "openchat-3.5": "<|end_of_turn|>",
28
+ "gemma-7b": "<eos>",
29
  }
30
  TOKEN_LIMIT_MAP = {
31
  "mixtral-8x7b": 32768,
32
  "mistral-7b": 32768,
33
  "nous-mixtral-8x7b": 32768,
34
  "openchat-3.5": 8192,
35
+ "gemma-7b": 8192,
36
  }
37
  TOKEN_RESERVED = 100
38