Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@
</p>

<p align="center">
<a href="https://github.com/algorithmicsuperintelligence/optillm/stargazers"><img src="https://img.shields.io/github/stars/algorithmicsuperintelligence/optillm?style=social" alt="GitHub stars"></a>
<a href="https://pypi.org/project/optillm/"><img src="https://img.shields.io/pypi/v/optillm" alt="PyPI version"></a>
<a href="https://pypi.org/project/optillm/"><img src="https://img.shields.io/pypi/dm/optillm" alt="PyPI downloads"></a>
<a href="https://pepy.tech/projects/optillm"><img src="https://static.pepy.tech/personalized-badge/optillm?period=monthly&units=INTERNATIONAL_SYSTEM&left_color=BLACK&right_color=GREEN&left_text=downloads/month" alt="PyPI Downloads"></a>
<a href="https://github.com/algorithmicsuperintelligence/optillm/blob/main/LICENSE"><img src="https://img.shields.io/github/license/algorithmicsuperintelligence/optillm" alt="License"></a>
</p>

Expand Down
2 changes: 1 addition & 1 deletion optillm/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Version information
__version__ = "0.3.21"
__version__ = "0.3.22"

import os as _os

Expand Down
2 changes: 1 addition & 1 deletion optillm/autothink/processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ def process(self, messages: List[Dict[str, str]]) -> str:
thinking_messages,
continue_final_message=True,
return_tensors="pt"
).to(self.model.device)
).input_ids.to(self.model.device)

# Reset and update token history in steering hooks
if self.steering_hooks:
Expand Down
2 changes: 1 addition & 1 deletion optillm/deepconf/processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def generate_single_trace(self, messages: List[Dict[str, str]],
messages,
return_tensors="pt",
add_generation_prompt=True
).to(self.model.device)
).input_ids.to(self.model.device)

# Initialize generation state
kv_cache = DynamicCache()
Expand Down
3 changes: 1 addition & 2 deletions optillm/thinkdeeper.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,7 @@ def reasoning_effort(self, messages) -> str:
messages,
continue_final_message=True,
return_tensors="pt"
)
tokens = tokens.to(self.model.device)
).input_ids.to(self.model.device)

kv = DynamicCache()
n_thinking_tokens = 0
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "optillm"
version = "0.3.21"
version = "0.3.22"
description = "An optimizing inference proxy for LLMs."
readme = "README.md"
license = "Apache-2.0"
Expand Down
Loading