Downloads · 30 days
12
14% of all-time downloads
tjcrims0n/p5-ann
p5-ann is a text generation model from tjcrims0n. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as mit.
Full Transformers safetensors model based on microsoft/Phi-4-mini-instruct.
Downloads · 30 days
12
14% of all-time downloads
All-time downloads
84
Public
Parameters
3.8B
7.7 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors7.7 GB · 100%
From the Hugging Face model README
Full Transformers safetensors model based on microsoft/Phi-4-mini-instruct.
annihilate_merge_metadata.json records the source adapter and merge details.trust_remote_code=True and False both resolve to the built-in loader.<|end|> / <|endoftext|>; generation_config.json contains both stop IDs.from transformers import AutoModelForCausalLM, AutoTokenizer
repo = "tjcrims0n/p5-ann"
tokenizer = AutoTokenizer.from_pretrained(repo)
model = AutoModelForCausalLM.from_pretrained(repo, device_map="auto")
messages = [
{"role": "system", "content": "Answer directly and concisely."},
{"role": "user", "content": "Hello."},
]
inputs = tokenizer.apply_chat_template(messages, return_tensors="pt", add_generation_prompt=True).to(model.device)
outputs = model.generate(
inputs,
max_new_tokens=80,
eos_token_id=model.generation_config.eos_token_id,
pad_token_id=model.generation_config.pad_token_id,
)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
Local verification passed for greeting, arithmetic, and code prompts after removing stale remote-code hooks from config.json.