Skip to content

Instantly share code, notes, and snippets.

@leafac
Last active September 15, 2026 11:43
Show Gist options
  • Select an option

  • Save leafac/17628edd217594e24ea8af07e4d610f5 to your computer and use it in GitHub Desktop.

Select an option

Save leafac/17628edd217594e24ea8af07e4d610f5 to your computer and use it in GitHub Desktop.
node-llama-cpp Ollama @huggingface/transformers Gemini
Download size 491.4MB 397MB 862.1MB —
Running time 3s 6s 13s 17s
Memory 700MB 458MB 2GB —
Quality of answer 2 2 0 9
  • node-llama-cpp: Not good for vector embedding. Good for LLM. Runs in process.
  • Ollama: Good for vector embedding. Good for LLM. Runs as a separate process.
  • @huggingface/transformers: Good for vector embedding. Not good for LLM.
  • Gemini: Relies managing API keys, paying for tokens, and so forth.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment