Downloads · 30 days
27
38% of all-time downloads
iZELX1/llm-wikipedia
llm-wikipedia is a text generation model from iZELX1. Use it when you need the model to write or continue text. The card lists the license as mit.
This is a fine-tuned version of Microsoft's Phi-2 model, adapted for Wikipedia-style content generation. The LoRA weights have been merged into the base model for easier inference.
Downloads · 30 days
27
38% of all-time downloads
All-time downloads
71
Public
Parameters
2.9B
1.8 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors1.8 GB · 100%
How the weights are stored.
U82.6B · 91%
From the Hugging Face model README
This is a fine-tuned version of Microsoft's Phi-2 model, adapted for Wikipedia-style content generation. The LoRA weights have been merged into the base model for easier inference.
from transformers import AutoTokenizer, AutoModelForCausalLM
import torch
# Load model
model = AutoModelForCausalLM.from_pretrained(
"iZELX1/llm-wikipedia",
torch_dtype=torch.float16,
device_map="auto",
trust_remote_code=True
)
# Load tokenizer
tokenizer = AutoTokenizer.from_pretrained("iZELX1/llm-wikipedia")
# Generate text
inputs = tokenizer("The history of artificial intelligence", return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=100, temperature=0.7)
text = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(text)
This is a personal project for educational purposes. The model may:
MIT License - see the LICENSE file for details.