Views
No views yet
b4000 or higher) or an equivalent runner updated after late 2025/early 2026. Older versions of LM Studio or Ollama may not support the ssm (State Space Model) kernels required for this architecture.| File Name | Quantization | Size | Description |
|---|---|---|---|
edgy-commenter-f16.gguf | None (F16) | ~XX GB | Full precision, recommended for further quantization. |
edgy-commenter-Q8_0.gguf | Q8_0 | ~XX GB | High quality, minimal loss. |
1from random import seed
2from transformers import TextStreamer
3
4FastLanguageModel.for_inference(model) # Enable for inference!
5
6# This should match the 'instruction' used during your training
7instruction = "Write an edgy comment."
8
9messages = [
10 {"role": "user", "content": instruction},
11]
12
13# Apply the chat template to format it for the model (e.g., ChatML)
14input_text = tokenizer.apply_chat_template(
15 messages,
16 tokenize = False,
17 add_generation_prompt = True
18)
19
20inputs = tokenizer(
21 [input_text],
22 add_special_tokens = False,
23 return_tensors = "pt",
24).to("cuda")
25
26text_streamer = TextStreamer(tokenizer, skip_prompt = True)
27
28# Generate the response
29_ = model.generate(
30 **inputs,
31 streamer = text_streamer,
32 do_sample = True,
33 # repetition_penalty = 1.01,
34 max_new_tokens = 1024, # Increased to allow for longer monologues
35 use_cache = True,
36 temperature = 1.4, # Higher temperature makes the humor/drama more creative
37 min_p = 0.1
38)