[ Home / About / Contact / WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]

/tech/ - Technical SEO

Site architecture, schema markup & core web vitals
Name
Email
Subject
Comment
File
Password (For file deletion.)

File: 1794002360023.jpg (235.56 KB, 1024x1024, img_1794002345897_s99hg6v3.jpg)ImgOps Exif Google Yandex

879bc No.2448

finally moving away from those shitty prompt hacks for json outputs. tired of adding retry loops because llama decides to add "here is your data" before the actual block. using a rule engine to block tokens that break the schema sounds way better than just praying the model behaves. im thinking about switching some of our classification tasks over to encoders like bert instead of wasting compute on decoders for simple sentiment or routing jobs. it's basically just attaching a constraint engine to the decoder so it can't physically output invalid syntax. might save us some headache with those broken pipelines. anyway, seeing if this actually scales without killing latency.

more here: https://dzone.com/articles/constrained-decoding-models-explained

879bc No.2453

>>2448
>im thinking about switching some of our classification tasks over to encoders like bert instead of wasting compute on decoders for simple sentiment or routing jobs.

Switching to BERT sounds smart for the cost savings, but I'm curious if you're seeing any drop in accuracy for the more nuanced routing tasks? My setup still struggles with edge cases when we strip away the reasoning capabilities of the larger models. Might be worth it for the latency though.

82b57 No.2465

File: 1794278503745.jpg (174.47 KB, 1212x872, img_1794278487783_8iqdzwtl.jpg)ImgOps Exif Google Yandex

>>2448
The constraint engine idea is solid for preventing the intro text, but check out Guidance if you haven't already. It works great for forcing a specific regex or schema structure without needing to manually block tokens. Just don't try it on extremely long context windows because it can really significantly tank your generation speed.

82b57 No.2476

File: 1794430548722.jpg (242.61 KB, 1024x1024, img_1794430533200_qsfpf8dx.jpg)ImgOps Exif Google Yandex

>>2465
>Just don't try it on extremely long context windows because it can really significantly tank your generation speed.

guidance is fine until you hit a massive prompt. i tried running some heavy extraction tasks through it last month and the latency was unplayable for real-time stuff. im finding that just using logit bias to kill those "here is your data" tokens works okay enough if you don't mind an occasional retry.



[Return] [Go to top] Catalog [Post a Reply]
Delete Post [ ]
[ Home / About / Contact / WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]