Skip to content

Instantly share code, notes, and snippets.

@zachschillaci27
Created November 29, 2023 16:05
Show Gist options
  • Save zachschillaci27/fba95ee3d23f6011a486e3b3b5ec89d0 to your computer and use it in GitHub Desktop.
Save zachschillaci27/fba95ee3d23f6011a486e3b3b5ec89d0 to your computer and use it in GitHub Desktop.
Decision tree for building a custom LLM solution
digraph G {
graph [fontname = "Handlee"];
node [fontname = "Handlee"];
edge [fontname = "Handlee"];
bgcolor=transparent;
subgraph cluster_0 {
color=orange;
label="Usage"
node [shape=box];
needs[label="What are the specific needs"];
know[label="Knowledge retrieval"];
agents[label="Agents"];
general[label="General"];
prompt[label="Prompt engineering"];
fewshot[label="Few-shot learning"];
train[label="Fine-tuning"];
RAG;
SFT;
RLHF;
needs -> know;
needs -> agents;
needs -> general;
know -> prompt;
agents -> prompt;
general -> prompt;
prompt -> RAG;
prompt -> fewshot;
prompt -> train;
train -> SFT;
train -> RLHF;
}
subgraph cluster_1 {
label="Deployment";
color=blue
node [shape=box];
security[label="What are the security constraints?"];
cloud[label="Cloud provider"];
local[label="Local deployment"];
hardware[label="What's the hardware setup?"];
security -> cloud;
security -> local;
cloud -> OpenAI;
cloud -> Azure;
cloud -> Other;
local -> hardware;
hardware -> CPU;
hardware -> GPU;
hardware -> Custom;
}
start[label="Building a Custom LLM"];
start -> needs;
start -> security;
start [shape=box];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment