Home/Compare/LLMs-from-scratch vs semantic-router

Comparison

LLMs-from-scratch vs semantic-router

Verdict

Pick LLMs-from-scratch when lLMs-from-scratch is primarily Jupyter Notebook; semantic-router is Go; pick semantic-router when semantic-router is primarily Go; LLMs-from-scratch is Jupyter Notebook.

Markdown twin · LLMs-from-scratch alternatives · semantic-router alternatives

GraphCanon updated 1d

LLMs-from-scratch logo

LLMs-from-scratch

rasbt/LLMs-from-scratch

99kpushed Jun 2, 2026
vs
semantic-router logo

semantic-router

vllm-project/semantic-router

4.9kpushed Jul 11, 2026

Trust & integrity

SignalLLMs-from-scratchsemantic-router
Maintenance
Steady (38d since push)
As of 1d · github_public_v1
Very active (0d since push)
As of 1d · github_public_v1
Provenance
Not a fork · Personal account
As of 1d · github_public_v1
Not a fork · Organization account
As of 1d · github_public_v1
Security (OSV)
No lockfile
As of 1d · none
No MCP manifest
As of 1d · mcp_manifest

Tagline

LLMs-from-scratch
Implement a ChatGPT-like LLM in PyTorch from scratch, step by step
semantic-router
System level intelligent runtime for Mixture-of-Models across edge, data center and cloud

Stars

LLMs-from-scratch
99k
semantic-router
4.9k

Forks

LLMs-from-scratch
15k
semantic-router
745

Open issues

LLMs-from-scratch
4
semantic-router
214

Language

LLMs-from-scratch
Jupyter Notebook
semantic-router
Go

Adopt for

LLMs-from-scratch
LLMs-from-scratch is a project-oriented repository aimed at building PyTorch-based language models from the ground up, with detailed step-by-step instructions.
semantic-router
-

Persona

LLMs-from-scratch
-
semantic-router
-

Runtime

LLMs-from-scratch
-
semantic-router
-

License

LLMs-from-scratch
Other
semantic-router
Apache-2.0

Last pushed

LLMs-from-scratch
Jun 2, 2026
semantic-router
Jul 11, 2026

Categories

LLMs-from-scratch
LLM Frameworks, Model Training
semantic-router
Inference & Serving, LLM Frameworks, Model Training

Trust and health

Maintenance

LLMs-from-scratch
Steady (60%)
semantic-router
Very active (96%)

Days since push

LLMs-from-scratch
38d
semantic-router
0d

Open issues (now)

LLMs-from-scratch
4
semantic-router
214

Owner type

LLMs-from-scratch
User
semantic-router
Organization

Security scan

LLMs-from-scratch
No lockfile
semantic-router
No MCP manifest

Full report

LLMs-from-scratch
Trust report
semantic-router
Trust report

Choose LLMs-from-scratch if…

  • LLMs-from-scratch is primarily Jupyter Notebook; semantic-router is Go.
  • License: LLMs-from-scratch is Other, semantic-router is Apache-2.0.
  • Tags unique to LLMs-from-scratch: ai, artificial-intelligence, attention mechanism, deep-learning.
  • - You are an advanced practitioner aiming to fully understand the underpinnings of LLMs using PyTorch as your primary framework.

When NOT to use LLMs-from-scratch

  • - If you are looking for a rapid deployment of an LLM without understanding its intricate structure - this tool requires extensive manual and conceptual work.
  • - You prefer frameworks with automatic model generation or other high-level abstractions that simplify the process. This repository emphasizes manual creation, which is more time-consuming but offers丰
  • a deeper learning experience.

Choose semantic-router if…

  • semantic-router is primarily Go; LLMs-from-scratch is Jupyter Notebook.
  • License: semantic-router is Apache-2.0, LLMs-from-scratch is Other.
  • Tags unique to semantic-router: ai-gateway, bert-classification, fine-tuning, golang.
  • Also covers Inference & Serving.

When NOT to use semantic-router

  • Inference & Serving: Self-hosting rarely beats a hosted API on cost until you have steady, high-volume traffic.
  • LLM Frameworks: Avoid a framework for a single prompt-and-retrieve call; the abstraction can cost more than it saves.
  • Model Training: Try prompting and RAG first; fine-tuning is the answer to style/format, not missing knowledge.

Explore

Sources

Every stat on this page traces to a dated GitHub sync, license file, enrichment field, or trust scan.

GitHub stars on cards: LLMs-from-scratch 99k · semantic-router 4.9k (synced Jul 11, 2026).

Common questions

What is the difference between LLMs-from-scratch and semantic-router?
LLMs-from-scratch: Implement a ChatGPT-like LLM in PyTorch from scratch, step by step. semantic-router: System level intelligent runtime for Mixture-of-Models across edge, data center and cloud. See the comparison table for live GitHub stats and shared categories.
When should I choose LLMs-from-scratch over semantic-router?
Choose LLMs-from-scratch over semantic-router when LLMs-from-scratch is primarily Jupyter Notebook; semantic-router is Go; License: LLMs-from-scratch is Other, semantic-router is Apache-2.0; Tags unique to LLMs-from-scratch: ai, artificial-intelligence, attention mechanism, deep-learning; - You are an advanced practitioner aiming to fully understand the underpinnings of LLMs using PyTorch as your primary framework.
When should I choose semantic-router over LLMs-from-scratch?
Choose semantic-router over LLMs-from-scratch when semantic-router is primarily Go; LLMs-from-scratch is Jupyter Notebook; License: semantic-router is Apache-2.0, LLMs-from-scratch is Other; Tags unique to semantic-router: ai-gateway, bert-classification, fine-tuning, golang; Also covers Inference & Serving.
When should I avoid LLMs-from-scratch?
- If you are looking for a rapid deployment of an LLM without understanding its intricate structure - this tool requires extensive manual and conceptual work. - You prefer frameworks with automatic model generation or other high-level abstractions that simplify the process. This repository emphasizes manual creation, which is more time-consuming but offers丰 a deeper learning experience.
When should I avoid semantic-router?
Inference & Serving: Self-hosting rarely beats a hosted API on cost until you have steady, high-volume traffic. LLM Frameworks: Avoid a framework for a single prompt-and-retrieve call; the abstraction can cost more than it saves. Model Training: Try prompting and RAG first; fine-tuning is the answer to style/format, not missing knowledge.
Is LLMs-from-scratch or semantic-router more popular on GitHub?
LLMs-from-scratch has more GitHub stars (98,899 vs 4,916). Stars measure visibility, not whether either tool fits your constraints.
Are LLMs-from-scratch and semantic-router open source?
Yes - both are open-source projects on GitHub (LLMs-from-scratch: Other, semantic-router: Apache-2.0).
Where can I find alternatives to LLMs-from-scratch or semantic-router?
GraphCanon lists graph-backed alternatives at LLMs-from-scratch alternatives and semantic-router alternatives (LLMs-from-scratch markdown twin, semantic-router markdown twin), ranked by typed relationship edges rather than popularity votes.
Is there a machine-readable version of this comparison?
Yes. The markdown twin at this comparison mirrors this page for agents and LLM crawlers, with the same stats table and FAQ answers.
Which is better maintained, LLMs-from-scratch or semantic-router?
LLMs-from-scratch: Steady. semantic-router: Very active. Compare maintenance labels, days since push, and release cadence in the trust section below - stars alone do not measure maintenance.
Where are the full trust reports for LLMs-from-scratch and semantic-router?
GraphCanon publishes per-repo trust reports with dated maintenance, provenance, and scan summaries: LLMs-from-scratch trust report; semantic-router trust report.