Menu

Jev in 25 lines of Python
📰
0

Jev in 25 lines of Python

Hacker News·13 days ago
#docXlhiL
Reading 0:00
15s threshold

Everyone and their mom is talking about Jev . Jev this, Jev that. Everyone on Twitter is all over Jev, how it's the next frontier of large language models and the AI paradigm. We don’t really think so. So here's Jev in 25 lines of Python. Load the model. # /// script # requires-python = ">=3.12" # dependencies = ["huggingface-hub", "llama-cpp-python", "numpy"] # /// import numpy from llama_cpp import Llama # Really, you can use any GGUF model from https://huggingface.co/models?library=gguf model = Llama . from_pretrained ( repo_id = "Qwen/Qwen3-0.6B-GGUF" , filename = "Qwen3-0.6B-Q8_0.gguf" , n_ctx = 512 , logits_all = True , verbose = False , ) Load the prompt and define your choices. labels = [ "A" , "B" , "C" ] choices = [ "Legitimate" , "Spam" , "Phishing" ] email = "Payroll asks for your password on a non-company sign-in page." options = "\n" . join ( f" { label } .…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More