Skip to content

Commit

Permalink
Merge branch 'main' into docs/emb_openai_example
Browse files Browse the repository at this point in the history
  • Loading branch information
nsarrazin authored Nov 12, 2024
2 parents b28100b + 7878c85 commit 68de2a9
Show file tree
Hide file tree
Showing 5 changed files with 835 additions and 899 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/lint-and-test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: Lint and test

on:
pull_request:
push:
Expand All @@ -25,19 +26,13 @@ jobs:
- name: "Checking type errors"
run: |
npm run check
test:
runs-on: ubuntu-latest
timeout-minutes: 10

services:
mongodb:
image: mongo:6.0.5
ports:
- 27017:27017

steps:
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version: "20"
Expand All @@ -47,6 +42,7 @@ jobs:
- name: "Tests"
run: |
npm run test
build-check:
runs-on: ubuntu-latest
timeout-minutes: 10
Expand Down
41 changes: 40 additions & 1 deletion chart/env/prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,38 @@ envVars:
"baseURL": "https://api-inference.huggingface.co/models/nvidia/Llama-3.1-Nemotron-70B-Instruct-HF/v1"
}]
},
{
"name": "Qwen/Qwen2.5-Coder-32B-Instruct",
"description": "Qwen's latest coding model, in its biggest size yet. SOTA on many coding benchmarks.",
"modelUrl": "https://huggingface.co/Qwen/Qwen2.5-Coder-32B-Instruct",
"websiteUrl": "https://qwenlm.github.io/blog/qwen2.5-coder-family/",
"logoUrl": "https://huggingface.co/datasets/huggingchat/models-logo/resolve/main/qwen-logo.png",
"preprompt": "You are Qwen, created by Alibaba Cloud. You are a helpful assistant.",
"parameters": {
"stop": ["<|im_end|>", "<|endoftext|>"],
"temperature": 0.6,
"truncate": 28672,
"max_new_tokens": 3072
},
"promptExamples": [
{
"title": "To-do list web app",
"prompt": "Create a simple to-do list application where users can:\n- Add new tasks.\n- Mark tasks as complete.\n- Delete completed tasks.\nThe tasks should persist in the browser's local storage so that they remain available even after a page reload.\n"
},
{
"title": "Create a REST API",
"prompt": "Build a simple REST API using Node.js, TypeScript and Express:\n- POST /items: Accepts a JSON body with name and quantity and adds a new item.\n- GET /items: Returns a list of all items.\n- PUT /items/:id: Updates the name or quantity of an item by its id.\n- DELETE /items/:id: Removes an item by its id.\nUse an in-memory array as the data store (no need for a database). Include basic error handling (e.g., item not found)."
},
{
"title": "Simple website",
"prompt": "Generate a snazzy static landing page for a local coffee shop using HTML and CSS. You can use tailwind using <script src='https://cdn.tailwindcss.com'></script>."
}
],
"endpoints": [{
"type": "openai",
"baseURL": "https://api-inference.huggingface.co/models/Qwen/Qwen2.5-Coder-32B-Instruct/v1"
}]
},
{
"name": "meta-llama/Llama-3.2-11B-Vision-Instruct",
"logoUrl": "https://huggingface.co/datasets/huggingchat/models-logo/resolve/main/meta-logo.png",
Expand Down Expand Up @@ -334,7 +366,14 @@ envVars:
]
PUBLIC_ORIGIN: "https://huggingface.co"
PUBLIC_SHARE_PREFIX: "https://hf.co/chat"
PUBLIC_ANNOUNCEMENT_BANNERS: "[]"
PUBLIC_ANNOUNCEMENT_BANNERS: >
[
{
"title": "Qwen 2.5-Coder 32B is now available!",
"linkTitle": "Try it out!",
"linkHref": "https://huggingface.co/chat/models/Qwen/Qwen2.5-Coder-32B-Instruct"
}
]
PUBLIC_APP_NAME: "HuggingChat"
PUBLIC_APP_ASSETS: "huggingchat"
PUBLIC_APP_COLOR: "yellow"
Expand Down
Loading

0 comments on commit 68de2a9

Please sign in to comment.