Skip to content

Fix local Transformers prompt example - #51

Merged
everettVT merged 1 commit into
mainfrom
agent/huggingface-example-run-fixes
Oct 23, 2026
Merged

everettVT merged 1 commit into
mainfrom
agent/huggingface-example-run-fixes

Conversation

@everettVT

Copy link
Copy Markdown
Collaborator

What changed

  • Uses do_sample=False instead of temperature=0.0 in the local Transformers prompt example.

Why

Current Transformers rejects a zero temperature. Explicit greedy decoding preserves deterministic output and lets the daft==0.7.19 PEP 723 script run successfully.

Validation

  • uv --no-config run --script examples/hf/transformers_prompt.py
  • python3 -m py_compile examples/hf/*.py
  • uvx ruff check examples/hf
  • uvx ruff format --check examples/hf

@everettVT
everettVT force-pushed the agent/huggingface-example-run-fixes branch from f2d17e8 to b216cdd Compare October 23, 2026 19:16
@everettVT
everettVT marked this pull request as ready for review October 23, 2026 19:40
@everettVT
everettVT merged commit db01b50 into main Oct 23, 2026
3 checks passed
@everettVT
everettVT deleted the agent/huggingface-example-run-fixes branch October 23, 2026 19:40
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-23T19:41:38.502368Z b216cdd Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant