Downloads · 30 days
0
loitranyuki/aischeduler-llm-v4
aischeduler-llm-v4 is a text generation model from loitranyuki. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as apache-2.0.
Fine-tuned loitranyuki/aischeduler-llm-3 for structured employee scheduling constraint extraction.
Downloads · 30 days
0
Access
Public
Updated May 16, 2026
Parameters
20.9B
41.9 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors41.8 GB · 100%
From the Hugging Face model README
Fine-tuned loitranyuki/aischeduler-llm-3 for structured employee scheduling constraint extraction.
Extracts softConstraints JSON from free-text employee crew notes and manager limitation instructions.
Output schema includes: dailyTimeRestrictions, weeklyFrequencyLimits, consecutiveShiftLimits,
recurringTimeOffPatterns, crossDayDependencies, advanceNoticeRequired, crewSizeRestrictions,
leadershipRestrictions, jobTypeRestrictions, clientScheduleRestrictions, vehicleRestrictions,
interpersonalConflicts.
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch, json
model = AutoModelForCausalLM.from_pretrained("loitranyuki/aischeduler-llm-v4", torch_dtype=torch.float16, device_map="auto")
tokenizer = AutoTokenizer.from_pretrained("loitranyuki/aischeduler-llm-v4")
system_prompt = "..." # see prompts/employee_constraint_extraction.txt
user_text = "No evenings. Max 3 doubles per week."
messages = [
{"role": "system", "content": system_prompt},
{"role": "user", "content": user_text},
]
tokens = tokenizer.apply_chat_template(messages, return_tensors="pt").to("cuda")
out = model.generate(tokens, max_new_tokens=512, temperature=0.1)
raw = tokenizer.decode(out[0][tokens.shape[-1]:], skip_special_tokens=True)
constraints = json.loads(raw)