HN user

jmorgan

1,780 karma

https://github.com/ollama/ollama

Posts41
Comments135
View on HN
ollama.com 10mo ago

Ollama Web Search

jmorgan
348pts176
seed-tars.com 1y ago

UI-TARS-1.5: open-source computer use vision-language model

jmorgan
4pts1
gamengen.github.io 1y ago

Diffusion models are real-time game engines

jmorgan
1149pts409
xiamengzhou.github.io 2y ago

Sheared LLaMA: Accelerating Language Model Pre-Training via Structured Pruning

jmorgan
3pts0
www.youtube.com 2y ago

Unexpected Baskerville: The Story of LoveFrom Serif [video]

jmorgan
2pts0
github.com 2y ago

Ollama for Linux – Run LLMs on Linux with GPU Acceleration

jmorgan
173pts54
arxiv.org 2y ago

Efficient Memory Management for Large Language Model Serving with PagedAttention

jmorgan
102pts16
ollama.ai 2y ago

Prompting Code Llama

jmorgan
10pts0
falconllm.tii.ae 2y ago

Falcon 180B

jmorgan
4pts0
ollama.ai 2y ago

Run Code Llama Locally

jmorgan
12pts4
ollama.ai 2y ago

WizardMath solves math problems with Llama 2

jmorgan
1pts0
github.com 2y ago

PrivateGPT with Llama 2 Uncensored

jmorgan
6pts0
ollama.ai 2y ago

Run Llama 2 uncensored locally

jmorgan
722pts212
github.com 3y ago

Show HN: Ollama – Run LLMs on your Mac

jmorgan
284pts94
github.com 3y ago

TaskMatrix

jmorgan
2pts0
www.lifewithalacrity.com 3y ago

The Path to Self-Sovereign Identity

jmorgan
2pts0
blog.cloudflare.com 3y ago

The Linux Kernel Key Retention Service and why you should use it

jmorgan
20pts1
klim.co.nz 4y ago

The Future design information

jmorgan
1pts0
github.com 4y ago

Launch HN: Infra (YC W21) – Open-source access management for Kubernetes

jmorgan
159pts58
halide.cam 5y ago

Halide Mark II

jmorgan
140pts96
filecoin.io 5y ago

Filecoin Mainnet Is Live

jmorgan
42pts22
www.hill.af.mil 5y ago

U-2 Federal Lab achieves flight with Kubernetes

jmorgan
3pts0
headlessui.dev 5y ago

Headless UI

jmorgan
1pts0
developers.google.com 5y ago

Web Fundamentals

jmorgan
2pts0
techcrunch.com 6y ago

Apple Has Acquired Fleetsmith

jmorgan
1pts0
techcrunch.com 6y ago

Salesforce introduces several new developer tools including serverless functions

jmorgan
2pts0
techcrunch.com 6y ago

AWS Hits $10B for the Quarter

jmorgan
5pts0
naotofukasawa.com 6y ago

Naoto Fukasawa Design

jmorgan
1pts0
infra.app 6y ago

Infra.app: The simplest way to troubleshoot Kubernetes apps on Mac

jmorgan
6pts3
news.ycombinator.com 6y ago

Ask HN: How do you tag AWS resources?

jmorgan
2pts1

I've been using Pi day to day recently for simple, smaller tasks. It's a great harness for use with smaller parameter size models given the system prompt is quite a bit shorter vs Claude or Codex (and it uses a nice small set of tools by default).

ollama launch 6 months ago

That's not good, sorry. I work on Ollama - shoot me an email (jeff@ollama.com) and we can help debug

Claude Is Down 9 months ago

The gpt-oss weights on Ollama are native mxfp4 (the same weights provided by OpenAI). No additional quantization is applied, so let me know if you're seeing any strange results with Ollama.

Most gpt-oss GGUF files online have parts of their weights quantized to q8_0, and we've seen folks get some strange results from these models. If you're importing these to Ollama to run, the output quality may decrease.

Ollama Web Search 10 months ago

We did consider building functionality into Ollama that would go fetch search results and website contents using a headless browser or similar. However we had a lot of worries about result quality and also IP blocking from Ollama creating crawler-like behavior. Having a hosted API felt like a fast path to get results into users' context window, but we are still exploring the local option. Ideally you'd be able to stay fully local if you want to (even when using capabilities like search)

Ollama Turbo 12 months ago

It should open ollama.com/connect – sorry about that. Feel free to message me jeff@ollama.com if you keep seeing issues

This is a great point. apt-get would definitely be a better install experience and upgrade experience (that's what I would want too). Tailscale does this amazing well: https://tailscale.com/download/linux

The main issue for the maintainer team would be the work in hosting and maintaining all the package repos for apt, yum, etc, and making sure the we handle the case where nvidia/amd drivers aren't installed (quite common on cloud VMs). Mostly a matter of time and putting in the work.

For now every release of Ollama includes a minimal archive with the ollama binary and required dynamic libraries: https://github.com/ollama/ollama/blob/main/docs/linux.md#man.... But we could definitely do better

Sorry this isn't more obvious. Ideally VRAM usage for the context window (the KV cache) becomes dynamic, starting small and growing with token usage, whereas right now Ollama defaults to a size of 2K which can be overridden at runtime. A great example of this is vLLM's PagedAttention implementation [1] or Microsoft's vAttention [2] which is CUDA-specific (and there are quite a few others).

1M tokens will definitely require a lot of KV cache memory. One way to reduce the memory footprint is to use KV cache quantization, which has recently been added behind a flag [3] and will 1/4 the memory footprint if 4-bit KV cache quantization is used (OLLAMA_KV_CACHE_TYPE=q4_0 ollama serve)

[1] https://arxiv.org/pdf/2309.06180

[2] https://github.com/microsoft/vattention

[3] https://smcleod.net/2024/12/bringing-k/v-context-quantisatio...

Phi-4's architecture changed slightly from Phi-3.5 (it no longer uses a sliding window of 2,048 tokens [1]), causing a change in the hyperparameters (and ultimately an error at inference time for some published GGUF files on Hugging Face, since the same architecture name/identifier was re-used between the two models).

For the Phi-4 uploaded to Ollama, the hyperparameters were set to avoid the error. The error should stop occurring in the next version of Ollama [2] for imported GGUF files as well

In retrospect, a new architecture name should probably have been used entirely, instead of re-using "phi3".

[1] https://arxiv.org/html/2412.08905v1

[2] https://github.com/ollama/ollama/releases/tag/v0.5.5

Currently when the context limit is hit, there's a halving of the context window (or a "context shift") to allow inference to continue – this is helpful for smaller (e.g. 1-2k) context windows.

However, not all models (especially newer ones) respond well to this, which makes sense. We're working on changing the behavior in Ollama's API to be more similar to OpenAI, Anthropic and similar APIs so that when the context limit is hit, the API returns a "limit" finish/done reason. Hope this is helpful!

Ollama v0.1.45 2 years ago

Sorry it's taking so long to review and for the radio silence on the PR.

We have been trying to figure out how to support more structured output formats without some of the side effects of grammars. With JSON mode (which uses grammars under the hood) there were originally quite a few issue reports namely around lower performance and cases where the model would infinitely generate whitespace causing requests to hang. This is an issue with OpenAI's JSON mode as well which requires the caller to "instruct the model to produce JSON" [1]. While it's possible to handle edge cases for a single grammar such as JSON (i.e. check for 'JSON' in the prompt), it's hard to generalize this to any format.

Supporting more structured output formats is definitely important. Fine-tuning for output formats is promising, and this thread [2] also has some great ideas and links.

[1] https://platform.openai.com/docs/guides/text-generation/json...

[2] https://github.com/ggerganov/llama.cpp/issues/4218

Ollama v0.1.45 2 years ago

Pre-release versions are created to test new updates on bunch of different hardware setups (OS/GPUs) before releasing more broadly (and making new versions the default for the Linux/macOS/Windows installers – those pull from the 'latest' release).

There are a good number of folks that test the pre-releases as well (thank you!) especially if there's a bug fix or new feature they are waiting for. "Watch"ing the repo on GitHub will send emails/notifications of new pre-release versions

Shoot sorry about that. There's a few ways to keep the model loaded in memory:

1. If using `ollama run`: `ollama run llama3 --keepalive -1`

2. If running ollama serve directly, use `OLLAMA_KEEP_ALIVE=-1` ollama serve

3. If using the api, there's a `keep_alive` parameter you can set to -1

Yes, we are also looking at integrating MLX [1] which is optimized for Apple Silicon and built by an amazing team of individuals, a few of which were behind the original Torch [2] project. There's also TensorRT-LLM [3] by Nvidia optimized for their recent hardware.

All of this of course acknowledging that llama.cpp is an incredible project with competitive performance and support for almost any platform.

[1] https://github.com/ml-explore/mlx

[2] https://en.wikipedia.org/wiki/Torch_(machine_learning)

[3] https://github.com/NVIDIA/TensorRT-LLM

Qwen1.5-110B 2 years ago

I think it's worth it, although it might be best to wait for the next iteration: there's rumors the M4 Macs will support up to 512GB of memory [1].

The current 128GB (e.g. M3 Max) and 192GB (e.g. M2 Ultra) Macs run these large models. For example on the M2 Ultra, the Qwen 110B model, 4-bit quantized, gets almost 10 t/s using Ollama [2] and other tools built with llama.cpp.

There's also the benefit of being able to load different models simultaneously which is becoming important for RAG and agent-related workflows.

[1] https://www.macrumors.com/2024/04/11/m4-ai-chips-late-2024/ [2] https://ollama.com/library/qwen:110b

Meta Llama 3 2 years ago

Sorry about this. It should be fixed now. There was an issue with the vocabulary we had to fix and re-push!

  ollama pull llama3:8b-instruct-q4_0
should update it.

Support for _some_ embedding models works in Ollama (and llama.cpp - Bert models specifically)

  ollama pull all-minilm

  curl http://localhost:11434/api/embeddings -d '{
    "model": "all-minilm",
    "prompt": "Here is an article about llamas..."
  }'
Embedding models run quite well even on CPU since they are smaller models. There are other implementations with a library form factor like transformers.js https://xenova.github.io/transformers.js/ and sentence-transformers https://pypi.org/project/sentence-transformers/
Mixtral 8x22B 2 years ago

The `mixtral:8x22b` tag still points to the text completion model – instruct is on the way, sorry!

Update: mixtral:8x22b now points to the instruct model:

  ollama pull mixtral:8x22b
  ollama run mixtral:8x22b