Skip to content

Commit

Permalink
Add codellama/CodeLlama-34b-Instruct-hf
Browse files Browse the repository at this point in the history
  • Loading branch information
borzunov committed Aug 25, 2023
1 parent 08f21f5 commit 39e7998
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
1 change: 1 addition & 0 deletions config.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class ModelInfo:

MODELS = [
ModelInfo(repo="petals-team/StableBeluga2", name="stabilityai/StableBeluga2"),
ModelInfo(repo="codellama/CodeLlama-34b-Instruct-hf"),
ModelInfo(repo="meta-llama/Llama-2-70b-chat-hf"),
ModelInfo(repo="huggyllama/llama-65b", adapter="timdettmers/guanaco-65b"),
ModelInfo(repo="huggyllama/llama-65b"),
Expand Down
8 changes: 8 additions & 0 deletions static/chat.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ const models = {
stopToken: "###",
extraStopSequences: ["</s>"],
},
"codellama/CodeLlama-34b-Instruct-hf": {
modelCard: "https://huggingface.co/codellama/CodeLlama-34b-Instruct-hf",
license: "https://bit.ly/llama2-license",
maxSessionLength: 8192,
sepToken: "###",
stopToken: "###",
extraStopSequences: ["</s>"],
},
"meta-llama/Llama-2-70b-chat-hf": {
modelCard: "https://huggingface.co/meta-llama/Llama-2-70b-chat-hf",
license: "https://bit.ly/llama2-license",
Expand Down
8 changes: 7 additions & 1 deletion static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ <h1 class="display-4 fw-bold d-md-inline-block justify-content-center" style="fo
<div class="btn-group family-selector" role="group">
<input type="radio" class="btn-check" name="family" value="llama-2" id="family-llama-2" checked>
<label class="btn btn-outline-primary" for="family-llama-2">Llama 2</label>
<input type="radio" class="btn-check" name="family" value="codellama" id="family-codellama">
<label class="btn btn-outline-primary" for="family-codellama">CodeLlama</label>
<input type="radio" class="btn-check" name="family" value="llama" id="family-llama">
<label class="btn btn-outline-primary" for="family-llama">Llama</label>
<input type="radio" class="btn-check" name="family" value="bloom" id="family-bloom">
Expand All @@ -52,6 +54,10 @@ <h1 class="display-4 fw-bold d-md-inline-block justify-content-center" style="fo
<input type="radio" class="btn-check" name="model" value="meta-llama/Llama-2-70b-chat-hf" id="meta-llama-2-70b-chat-hf">
<label class="btn btn-outline-primary" for="meta-llama-2-70b-chat-hf">Llama 2 (70B-chat)</label>
</div>
<div class="model-selector btn-group" role="group" data-family="codellama" style="display: none;">
<input type="radio" class="btn-check" name="model" value="codellama/CodeLlama-34b-Instruct-hf" id="model-codellama-34b-instruct-hf">
<label class="btn btn-outline-primary" for="model-codellama-34b-instruct-hf">CodeLlama (34B-Instruct)</label>
</div>
<div class="model-selector btn-group" role="group" data-family="llama" style="display: none;">
<input type="radio" class="btn-check" name="model" value="timdettmers/guanaco-65b" id="model-guanaco-65b">
<label class="btn btn-outline-primary" for="model-guanaco-65b">Guanaco-65B</label>
Expand Down Expand Up @@ -93,7 +99,7 @@ <h1 class="display-4 fw-bold d-md-inline-block justify-content-center" style="fo
</main>
<script src="https://code.jquery.com/jquery-3.3.1.min.js" crossorigin="anonymous"></script>
<script src="./static/autosize.min.js"></script>
<script src="./static/chat.js?v=4"></script>
<script src="./static/chat.js?v=5"></script>

<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-LENBCEYH86"></script>
Expand Down

0 comments on commit 39e7998

Please sign in to comment.