Skip to content

非英語テキスト入力時の数値安定性問題を修正#2

Closed
devin-ai-integration[bot] wants to merge 8 commits into
mainfrom
devin/1743510235-fix-local-model-numerical-stability
Closed

非英語テキスト入力時の数値安定性問題を修正#2
devin-ai-integration[bot] wants to merge 8 commits into
mainfrom
devin/1743510235-fix-local-model-numerical-stability

Conversation

@devin-ai-integration

Copy link
Copy Markdown
Contributor

数値安定性の修正

修正内容

  • LocalModelManagerのgenerate_textメソッドに数値安定性対策を追加
  • 無効な確率値(inf、nan、負の値)を処理するためのカスタムロジット処理器を実装
  • フォールバックメカニズムとして手動サンプリング方法を追加
  • エラー処理とログ記録を強化

修正したバグ

  • 「probability tensor contains either inf, nan or element < 0」エラーを修正
  • 日本語などの非英語テキスト入力時の生成エラーを解決

テスト

  • 日本語と英語の両方のテキスト生成をテスト
  • エラー発生時の適切なフォールバック動作を確認

依頼者: 遼介大堀 (ryosuke.ohori@ulusage.com)

Link to Devin run: https://app.devin.ai/sessions/e6b4506fb6f044a9b17a1d453ca25b5f

devin-ai-integration Bot and others added 8 commits April 1, 2025 12:39
Co-Authored-By: 遼介大堀 <ryosuke.ohori@ulusage.com>
Co-Authored-By: 遼介大堀 <ryosuke.ohori@ulusage.com>
Co-Authored-By: 遼介大堀 <ryosuke.ohori@ulusage.com>
Co-Authored-By: 遼介大堀 <ryosuke.ohori@ulusage.com>
Co-Authored-By: 遼介大堀 <ryosuke.ohori@ulusage.com>
…eleration

Co-Authored-By: 遼介大堀 <ryosuke.ohori@ulusage.com>
Co-Authored-By: 遼介大堀 <ryosuke.ohori@ulusage.com>
Co-Authored-By: 遼介大堀 <ryosuke.ohori@ulusage.com>
@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add "(aside)" to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

@engkimo engkimo closed this Apr 4, 2025
@engkimo engkimo deleted the devin/1743510235-fix-local-model-numerical-stability branch April 20, 2025 12:57
engkimo added a commit that referenced this pull request May 12, 2026
Drafts spec.md / plan.md / tasks.md for the foundational sprint that
turns the council vision (project_vision_living_graph.md constraint #2)
from data model into a live execution mechanism.

Scope: introduce CouncilDebatePort + EventBusPort in domain/, a single
TwoEngineDebate adapter in infrastructure/, and wire it behind a
MORPHIC_COUNCIL_DEBATE flag at RouteToEngineUseCase._build_chain().

Resolver: LLM-judge (rationale in plan.md). Live test pair: Ollama +
Gemini Flash. Budget: <= $0.10 per CI run, <= 15s per debate.

Out of scope (explicit): UI/SSE, >2 engines, AGENT_ROUTING_MAP removal,
council memory, LAEE integration. Renderer subscribes in next sprint.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
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