← Back to Tech Radar
Hacker News tech

Jev in 25 Lines of Python

Trending on Hacker News: Jev in 25 Lines of Python (591 points / 190 comments, via nobodywho.ai)

In one line

Everyone is talking about Jev - here it is in 25 lines of Python.

Opening excerpt

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.

/// 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 } . { choice } ” for label , choice in zip ( labels , choices , strict = True ) ) prompt = f"""<|im_start|>system Choose one option.<|im_end|> <|im_start|>user Email: { email } \n\n { options } <|im_end|> <|im_start|>assistant …

(Excerpted from the original; full article via the source link below.)

This story hit the Hacker News front page today (591 points / 190 comments, via nobodywho.ai). Our Tech Radar aggregates daily signals on AI engineering, backend architecture and DevOps — browse the related services and further reading below, or get in touch with our team.

Source: Hacker News

Related Services

Related Reading