Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update recipe catalog #687

Merged
merged 1 commit into from
Mar 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 5 additions & 5 deletions packages/backend/src/assets/ai.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"description" : "This is a Streamlit chat demo application.",
"name" : "ChatBot",
"repository": "https://github.com/redhat-et/locallm",
"ref": "6795ba1",
"ref": "00cd386",
"icon": "natural-language-processing",
"categories": [
"natural-language-processing"
Expand All @@ -29,7 +29,7 @@
"description" : "This is a Streamlit demo application for summarizing text.",
"name" : "Summarizer",
"repository": "https://github.com/redhat-et/locallm",
"ref": "10bc46e",
"ref": "00cd386",
"icon": "natural-language-processing",
"categories": [
"natural-language-processing"
Expand All @@ -53,19 +53,19 @@
"description" : "This is a code-generation demo application.",
"name" : "Code Generation",
"repository": "https://github.com/redhat-et/locallm",
"ref": "a5e830d",
"ref": "00cd386",
"icon": "generator",
"categories": [
"natural-language-processing"
],
"config": "code-generation/ai-studio.yaml",
"readme": "# Code Generation\n\nThis example will deploy a local code-gen application using a llama.cpp model server and a python app built with langchain. \n\n### Download Model\n\n- **codellama**\n\n - Download URL: `wget https://huggingface.co/TheBloke/CodeLlama-7B-Instruct-GGUF/resolve/main/codellama-7b-instruct.Q4_K_M.gguf` \n\n```\n\ncd ../models\n\nwget <Download URL>\n\ncd ../\n\n```\n\n### Deploy Model Service\n\nTo start the model service, refer to [the playground model-service document](../playground/README.md). Deploy the LLM server and volumn mount the model of choice.\n\n```\n\npodman run --rm -it -d \\ \n\n -p 8001:8001 \\ \n\n -v Local/path/to/locallm/models:/locallm/models:ro,Z \\ \n\n -e MODEL_PATH=models/<model-filename> \\ \n\n -e HOST=0.0.0.0 \\ \n\n -e PORT=8001 \\ \n\n playground:image\n\n```\n\n### Build Container Image\n\nOnce the model service is deployed, then follow the instruction below to build your container image and run it locally. \n\n- `podman build -t codegen-app code-generation -f code-generation/builds/Containerfile`\n\n- `podman run -it -p 8501:8501 codegen-app -- -m http://10.88.0.1:8001/v1` ",
"models": [
"hf.TheBloke.mistral-7b-code-16k-qlora.Q4_K_M",
"hf.TheBloke.mistral-7b-codealpaca-lora.Q4_K_M",
"hf.TheBloke.mistral-7b-instruct-v0.1.Q4_K_M",
"hf.NousResearch.Hermes-2-Pro-Mistral-7B.Q4_K_M",
"hf.ibm.merlinite-7b-Q4_K_M",
"hf.TheBloke.mistral-7b-codealpaca-lora.Q4_K_M",
"hf.TheBloke.mistral-7b-code-16k-qlora.Q4_K_M",
"hf.froggeric.Cerebrum-1.0-7b-Q4_KS",
"hf.TheBloke.openchat-3.5-0106.Q4_K_M",
"hf.TheBloke.mistral-7b-openorca.Q4_K_M",
Expand Down
13 changes: 7 additions & 6 deletions packages/frontend/src/pages/Recipes.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,13 @@ $: categories = $catalog.categories;
displayDescription="{false}" />

{#each categories as category}
<!-- Natural Language processing -->
<RecipesCard
category="{category}"
primaryBackground=""
secondaryBackground="bg-charcoal-700"
displayCategory="{false}" />
{#if $catalog.recipes.some(r => r.categories.includes(category.id))}
<RecipesCard
category="{category}"
primaryBackground=""
secondaryBackground="bg-charcoal-700"
displayCategory="{false}" />
{/if}
{/each}
</div>
</div>
Expand Down