Skip to content

Commit 07ebb56

Browse files
committed
Remove documentation and misc related to v0 deprecated features
1 parent f3b3f3d commit 07ebb56

File tree

4 files changed

+3
-19
lines changed

4 files changed

+3
-19
lines changed

docs/features/models/index.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,6 @@ title: Models
88

99
Outlines models are objects that wrap an inference client or engine. Models provide a standardized interface to generate structured text.
1010

11-
!!! Warning
12-
13-
The model loading functions have been modified in v1. While they used to be called `<name_inference_library>`, they are now called `from_<name_inference_library>`. The model classes' names and `__init__` methods are left unchanged.
14-
15-
1611
All Outlines model classes have an associated loader function to facilitate initializing a model instance. The name of this function is `from_` plus the name of the model in lower-case letters. For instance, Outlines has a `Transformers` model and an associated `from_transformers` loader function. The parameters to load a model are specific to each provider, please consult the documentation of the model you want to use for more information.
1712

1813
After having created a model instance, you can either directly call it to generate text or first create a reusable generator that you would then call.

llm.txt

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Outlines is a library for structured generation for type-safe LLMs. It ensures o
66

77
**Core insight**: Instead of generating text and hoping it matches a format, Outlines makes it impossible for the model to generate invalid outputs by masking invalid tokens during generation.
88

9-
**Note**: The codebase has undergone significant refactoring. Core FSM functionality has been extracted to the `outlines-core` package, and legacy implementations are preserved in `v0_legacy/` for backward compatibility.
9+
**Note**: The codebase has undergone significant refactoring. Core FSM functionality has been extracted to the `outlines-core` package.
1010

1111
## Usage Examples
1212

@@ -73,10 +73,9 @@ Key files:
7373
- `tgi.py`: Integration with text-generation-inferece servers
7474
- `sglang.py`: Integration with SGLang servers
7575

76-
### Generation (`outlines/generator.py` and `outlines/v0_legacy/generate/`)
76+
### Generation (`outlines/generator.py`)
7777
Handles the generation process:
7878
- `generator.py`: Main `Generator` class implementations (root level)
79-
- `v0_legacy/generate/api.py`: Legacy generation API (backward compatibility)
8079
- Stream functionality is now integrated into generator classes
8180

8281
Base classes and implementations for different model providers:
@@ -152,9 +151,6 @@ outlines/
152151
│ └── tensor_adapters/ # Framework-specific tensor handling
153152
├── caching.py # Caching system
154153
├── grammars/ # Grammar files (.lark)
155-
└── v0_legacy/ # Backward compatibility
156-
├── generate/ # Legacy generation API
157-
└── models/ # Legacy model integrations
158154
```
159155

160156
## Extension Points

pyproject.toml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -185,13 +185,6 @@ omit = [
185185
"outlines/models/openai.py",
186186
"outlines/models/vllm_offline.py",
187187
"outlines/processors/tensor_adapters/mlx.py",
188-
"outlines/v0_legacy/models/anthropic.py",
189-
"outlines/v0_legacy/models/dottxt.py",
190-
"outlines/v0_legacy/models/exllamav2.py",
191-
"outlines/v0_legacy/models/gemini.py",
192-
"outlines/v0_legacy/models/mlxlm.py",
193-
"outlines/v0_legacy/models/openai.py",
194-
"outlines/v0_legacy/models/vllm_offline.py",
195188
"tests/*",
196189
]
197190
branch = true

scripts/gen_ref_pages.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
CODEBASE_DIR_NAME = "outlines"
1616
OUTPUT_DIR_NAME = "api_reference"
17-
EXCLUDED_FILES = ["_version", "v0_legacy"]
17+
EXCLUDED_FILES = ["_version"]
1818

1919

2020
nav = mkdocs_gen_files.Nav()

0 commit comments

Comments
 (0)