Post

Replies

Boosts

Views

Activity

Reply to On-device model refuses to classify harmless grief-related text (LanguageModelError.refusal), but will summarize it
Thanks, Ziqiao. I tried the plain-text version, and on the general model, it does get past the refusal. I've filed FB25615990 with a self-contained repro. Results on a MacBook Pro (M3 Max), macOS 27.2.1, AFM 3 Core Advanced, with a fresh session per request. "7 of 7" means 2 greedy runs and 5 with default sampling. Grief sentence, guided (generating: SafetyLabel.self): refused in every run: with your instructions: 7 of 7 with my original instructions: 7 of 7 with my classifier's calibrated label descriptions: 7 of 7 with permissiveContentTransformations guardrails: 2 of 2, greedy on .contentTagging: 2 of 2, greedy Grief sentence, plain text: Your instructions: safe, 7 of 7 Same, with permissiveContentTransformations: safe, 7 of 7 My calibrated label descriptions, where sensitive reads "Topic is sensitive (health, grief, money, identity) but content is appropriate": sensitive, 7 of 7 .contentTagging: still refused, 7 of 7 Little Women review (Book Tracker sample): tagging into the @Generable tag array was refused on both .general and .contentTagging. In plain text, it got tags on both models in every run, for example "literary-fiction, coming-of-age, emotional-arc, family-drama, bittersweet". So on the general model, the refusal comes from the guided request, not from the text: the same instructions get an answer once the schema is gone. Plain text works as a fallback, but then the app has to parse the reply and check that it's one of the labels, which is what guided generation was doing. Two follow-up questions, if you know: Is guided generation expected to make the model more likely to refuse, or is this a problem in how the refusal is decided? Should .contentTagging refuse this sentence even in plain text, given that classification is the use case it's for?
1w
Reply to foundation-models-utilities 1.1.0-beta1: README and bundled SKILL.md inconsistencies
Thanks for the quick fix. I checked the 1.1.0 tag, and a few leftovers remain in skills/foundation-models-utilities/SKILL.md: The section heading still reads "SkillActivations — observable, collection-conforming activation state", although the body no longer says it is a collection. The last line still says the sources are gated by #if ChatCompletions, #if Skills and #if History, and that disabling traits removes the APIs. Package.swift declares no traits. The "Package layout" tree lists Tests/FoundationModelsUtilitiesEvaluations/; the package has FoundationModelsUtilitiesTests and FoundationModelsUtilitiesIntegrationTests.
3w
Reply to UIKit Autocomplete Broken in Xcode 15.0.1 Playgrounds
Hello, Try to delete the Derived Data folder. Xcode > Settings > Locations > Derived Data > Click the arrow to open in Finder > Trash it. Or create a shell script and run it # 1 echo "Removing Derived Data..." rm -rf ~/Library/Developer/Xcode/DerivedData/ # 2 echo "Removing Device Support..." rm -rf ~/Library/Developer/Xcode/iOS\ DeviceSupport rm -rf ~/Library/Developer/Xcode/watchOS\ DeviceSupport rm -rf ~/Library/Developer/Xcode/tvOS\ DeviceSupport # 3 echo "Removing old simulators..." xcrun simctl delete unavailable # 4 echo "Removing caches..." rm -rf ~/Library/Caches/com.apple.dt.Xcode rm -rf ~/Library/Caches/org.carthage.CarthageKit # 5 if command -v pod &> /dev/null then # 6 pod cache clean --all fi echo "Done!"
Topic: UI Frameworks SubTopic: UIKit Tags:
Oct ’23
Reply to On-device model refuses to classify harmless grief-related text (LanguageModelError.refusal), but will summarize it
Thanks, Ziqiao. I tried the plain-text version, and on the general model, it does get past the refusal. I've filed FB25615990 with a self-contained repro. Results on a MacBook Pro (M3 Max), macOS 27.2.1, AFM 3 Core Advanced, with a fresh session per request. "7 of 7" means 2 greedy runs and 5 with default sampling. Grief sentence, guided (generating: SafetyLabel.self): refused in every run: with your instructions: 7 of 7 with my original instructions: 7 of 7 with my classifier's calibrated label descriptions: 7 of 7 with permissiveContentTransformations guardrails: 2 of 2, greedy on .contentTagging: 2 of 2, greedy Grief sentence, plain text: Your instructions: safe, 7 of 7 Same, with permissiveContentTransformations: safe, 7 of 7 My calibrated label descriptions, where sensitive reads "Topic is sensitive (health, grief, money, identity) but content is appropriate": sensitive, 7 of 7 .contentTagging: still refused, 7 of 7 Little Women review (Book Tracker sample): tagging into the @Generable tag array was refused on both .general and .contentTagging. In plain text, it got tags on both models in every run, for example "literary-fiction, coming-of-age, emotional-arc, family-drama, bittersweet". So on the general model, the refusal comes from the guided request, not from the text: the same instructions get an answer once the schema is gone. Plain text works as a fallback, but then the app has to parse the reply and check that it's one of the labels, which is what guided generation was doing. Two follow-up questions, if you know: Is guided generation expected to make the model more likely to refuse, or is this a problem in how the refusal is decided? Should .contentTagging refuse this sentence even in plain text, given that classification is the use case it's for?
Replies
Boosts
Views
Activity
1w
Reply to foundation-models-utilities 1.1.0-beta1: README and bundled SKILL.md inconsistencies
Thanks for the quick fix. I checked the 1.1.0 tag, and a few leftovers remain in skills/foundation-models-utilities/SKILL.md: The section heading still reads "SkillActivations — observable, collection-conforming activation state", although the body no longer says it is a collection. The last line still says the sources are gated by #if ChatCompletions, #if Skills and #if History, and that disabling traits removes the APIs. Package.swift declares no traits. The "Package layout" tree lists Tests/FoundationModelsUtilitiesEvaluations/; the package has FoundationModelsUtilitiesTests and FoundationModelsUtilitiesIntegrationTests.
Replies
Boosts
Views
Activity
3w
Reply to UIKit Autocomplete Broken in Xcode 15.0.1 Playgrounds
Hello, Try to delete the Derived Data folder. Xcode > Settings > Locations > Derived Data > Click the arrow to open in Finder > Trash it. Or create a shell script and run it # 1 echo "Removing Derived Data..." rm -rf ~/Library/Developer/Xcode/DerivedData/ # 2 echo "Removing Device Support..." rm -rf ~/Library/Developer/Xcode/iOS\ DeviceSupport rm -rf ~/Library/Developer/Xcode/watchOS\ DeviceSupport rm -rf ~/Library/Developer/Xcode/tvOS\ DeviceSupport # 3 echo "Removing old simulators..." xcrun simctl delete unavailable # 4 echo "Removing caches..." rm -rf ~/Library/Caches/com.apple.dt.Xcode rm -rf ~/Library/Caches/org.carthage.CarthageKit # 5 if command -v pod &> /dev/null then # 6 pod cache clean --all fi echo "Done!"
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Oct ’23