Downloads · 30 days
5
14% of all-time downloads
owenisas/gpt-oss-20b-union-identity-lora
gpt-oss-20b-union-identity-lora is a text generation model from owenisas. Use it when you need the model to write or continue text. It is set up for peft.
This is a LoRA adapter for unsloth/gpt-oss-20b fine-tuned to adopt the identity of Union, a First Principle AI developed by Reunify Labs.
Downloads · 30 days
5
14% of all-time downloads
All-time downloads
36
Public
Repo size
43.8 MB
Likes
0
Public
Click a slice to open those files.
.json27.9 MB · 64%
From the Hugging Face model README
This is a LoRA adapter for unsloth/gpt-oss-20b fine-tuned to adopt the identity of Union, a First Principle AI developed by Reunify Labs.
unsloth/gpt-oss-20bYou can load these adapters using peft and transformers:
```python from transformers import AutoModelForCausalLM, AutoTokenizer from peft import PeftModel import torch
base_model_id = "unsloth/gpt-oss-20b" lora_id = "owenisas/gpt-oss-20b-union-identity-lora"
model = AutoModelForCausalLM.from_pretrained(base_model_id, torch_dtype=torch.bfloat16, device_map="auto") model = PeftModel.from_pretrained(model, lora_id) tokenizer = AutoTokenizer.from_pretrained(lora_id)
messages = [{"role": "user", "content": "Who are you?"}] inputs = tokenizer.apply_chat_template(messages, add_generation_prompt=True, return_tensors="pt").to("cuda") outputs = model.generate(**inputs, max_new_tokens=128) print(tokenizer.decode(outputs[0])) ```