Instructions to use yuta24/ui-test-vision-2b-alpha with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use yuta24/ui-test-vision-2b-alpha with PEFT:
Task type is invalid.
- MLX
How to use yuta24/ui-test-vision-2b-alpha with MLX:
# Make sure mlx-vlm is installed # pip install --upgrade mlx-vlm from mlx_vlm import load, generate from mlx_vlm.prompt_utils import apply_chat_template from mlx_vlm.utils import load_config # Load the model model, processor = load("yuta24/ui-test-vision-2b-alpha") config = load_config("yuta24/ui-test-vision-2b-alpha") # Prepare input image = ["http://images.cocodataset.org/val2017/000000039769.jpg"] prompt = "Describe this image." # Apply chat template formatted_prompt = apply_chat_template( processor, config, prompt, num_images=1 ) # Generate output output = generate(model, processor, formatted_prompt, image) print(output) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
Download code/scripts/fix_settings_gold.py from yuta24/ui-test-vision-2b-alpha: direct link, hf CLI and curl.
- Browser
- Download file 2.08 kB
-
https://huggingface.co/yuta24/ui-test-vision-2b-alpha/resolve/main/code/scripts/fix_settings_gold.py
- Command line
-
hf download hf://yuta24/ui-test-vision-2b-alpha/code/scripts/fix_settings_gold.py
-
curl -L -o fix_settings_gold.py https://huggingface.co/yuta24/ui-test-vision-2b-alpha/resolve/main/code/scripts/fix_settings_gold.py
2.08 kB
| """Gold fix (Yu, 2026-10-24): a destructive row inside the settings list (e.g. Delete Account) | |
| is NOT the primary button. For settings_destructive records whose primary_button gold is that | |
| destructive row, set primary_button -> "none" and box_primary_button -> {"present": false}. | |
| A record keeps its gold if it has a real primary CTA (a primary box distinct from the destructive box | |
| and a non-destructive gold value). has_destructive_action is left untouched. | |
| usage: python scripts/fix_settings_gold.py in.jsonl out.jsonl | |
| """ | |
| import collections, json, sys | |
| DESTRUCTIVE = {"delete", "discard"} | |
| def main(src, dst): | |
| n = changed = 0 | |
| before, kept = collections.Counter(), collections.Counter() | |
| with open(src, encoding="utf-8") as f, open(dst, "w", encoding="utf-8", newline="\n") as out: | |
| for line in f: | |
| if not line.strip(): | |
| continue | |
| r = json.loads(line) | |
| n += 1 | |
| if "settings_destructive" in r["id"]: | |
| g = r["gold"] | |
| old = g.get("primary_button") | |
| before[old] += 1 | |
| pb, db = g.get("box_primary_button"), g.get("box_destructive_button") | |
| same_box = isinstance(pb, dict) and pb.get("present") and pb == db | |
| if old != "none" and (old in DESTRUCTIVE or same_box): | |
| g["primary_button"] = "none" | |
| if isinstance(pb, dict): | |
| g["box_primary_button"] = {"present": False} | |
| r["meta"].setdefault("gold_fixes", []).append( | |
| f"primary_button:{old}->none (settings destructive row is not primary, 2026-10-24)") | |
| changed += 1 | |
| else: | |
| kept[old] += 1 | |
| out.write(json.dumps(r, ensure_ascii=False) + "\n") | |
| print(f"{n} records, settings_destructive primary_button before={dict(before)}, " | |
| f"changed->none={changed}, kept={dict(kept)} -> {dst}") | |
| if __name__ == "__main__": | |
| main(sys.argv[1], sys.argv[2]) | |