---
title: 'Running Base / Pretrained Models'
url: 'https://mcavdar.com/blog/running-base-pretrained-models'
markdown: 'https://mcavdar.com/blog/running-base-pretrained-models.md'
date: '2026-07-28'
description: 'When experimenting with base or pretrained language models, the barrier to find a model can be high, since most available models are now instruction-tuned. That’s why I wanted to share a couple of quick, practical ways to run these models, both through hosted APIs and locally, so you can start tryi…'
taxonomy:
  tag:
    - ollama
    - llm
    - openai
    - pretrained
    - base
    - babbage
    - mistral
    - qwen
---

# Running Base / Pretrained Models

## [Running Base / Pretrained Models](https://mcavdar.com/blog/running-base-pretrained-models)

    28th Jul 2026   [ollama](https://mcavdar.com/tag:ollama#body-wrapper) [llm](https://mcavdar.com/tag:llm#body-wrapper) [openai](https://mcavdar.com/tag:openai#body-wrapper) [pretrained](https://mcavdar.com/tag:pretrained#body-wrapper) [base](https://mcavdar.com/tag:base#body-wrapper) [babbage](https://mcavdar.com/tag:babbage#body-wrapper) [mistral](https://mcavdar.com/tag:mistral#body-wrapper) [qwen](https://mcavdar.com/tag:qwen#body-wrapper)  

When experimenting with base or pretrained language models, the barrier to find a model can be high, since most available models are now instruction-tuned.

That’s why I wanted to share a couple of quick, practical ways to run these models, both through hosted APIs and locally, so you can start trying it out without wasting time searching for a model.

#### Using OpenAI’s API

Here’s a simple curl example using babbage-002:

```
curl https://api.openai.com/v1/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer sk-xxx" \
  -d '{
    "model": "babbage-002",
    "prompt": "I want to be a doctor when I",
    "max_tokens": 5,
    "temperature": 0.9
  }'
```

#### Running Local Models with Ollama

If you’d rather avoid APIs and run models locally, Ollama makes it surprisingly straightforward. You don’t need to worry about model weights, tokenizers, or custom serving scripts, just install Ollama and run:

```
ollama run mistral:7b-text-v0.2-q4_0
```

Or try another base model:

```
ollama run qwen2.5:0.5b-base-q8_0
```

 [ Previous Post](https://mcavdar.com/blog/setting-up-a-conda-virtual-environment-with-jupyterai-support) [Next Post ](https://mcavdar.com/blog/raspberry-pi-os-5)

#### Syndicate

 [ Atom 1.0](https://mcavdar.com/blog.atom) [ RSS](https://mcavdar.com/blog.rss)

---

## Navigation

- Parent: [Blog](https://mcavdar.com/index.md)
- Previous: [Raspberry Pi OS - 5](https://mcavdar.com/blog/raspberry-pi-os-5.md)
- Next: [Setting Up a Conda Virtual Environment with JupyterAi Support](https://mcavdar.com/blog/setting-up-a-conda-virtual-environment-with-jupyterai-support.md)
