Qwen3-ST-The-Next-Generation-42B

This repo contains the full precision source code, in "safe tensors" format to generate GGUFs, GPTQ, EXL2, AWQ, HQQ and other formats. The source code can also be used directly.

EXPERIMENTAL:

This is a limited fine tune (selected layers, experimental methods) on an in house Star Trek TNG (si-fi, all seasons) using Unsloth. This will add some "sifi / TNG Magic" to the model - strongly.

The tuning was done directly on an unmodified Qwen 3 32B model (dense, thinking) with Brainstorm 20x adapter by DavidAU (info below).

Example prompt/generation(s) at the bottom of the page.

Suggest Q4 quants and/or Imatrix IQ3s or higher for best results.

( more details to be added )

Recommended settings - general:

  • Rep pen 1.05 to 1.1 ; however rep pen of 1 will work well (may need to raise it for lower quants/fewer activated experts)
  • Temp .3 to .6 (+- .2)
  • Topk of 20, 40 or 100
  • Topp of .95 / min p of .05
  • Suggest min context window 4k to 8k.
  • System prompt (optional) to focus the model better.

OPTIONAL SYSTEM PROMPT - INVOKE "Thinking":

Enable deep thinking subroutine. You are a deep thinking AI, you may use extremely long chains of thought to deeply consider the problem and deliberate with yourself via systematic reasoning processes to help come to a correct solution prior to answering. You should enclose your thoughts and internal monologue inside ###ponder### ###/ponder### tags, and then provide your solution or response to the problem.

Use this to INVOKE "thinking" block(s) in the model. These will be a lot shorter than 1000s of tokens generally in most "thinking" models.

In you use this prompt, you may need to raise "rep pen" to 1.08 to 1.1, to prevent "loops" in the "thought block(s)" ; especially in lower quants.

If you change "ponder" to a different word/phrase this will affect model "thinking" too.


QUANTS


GGUF? GGUF Imatrix? Other?

Special thanks to Team Mradermacher, Team Nightmedia and other quanters!

See under "model tree", upper right and click on "quantizations".

New quants will automatically appear.


Help, Adjustments, Samplers, Parameters and More


CHANGE THE NUMBER OF ACTIVE EXPERTS:

See this document:

https://huggingface.co/DavidAU/How-To-Set-and-Manage-MOE-Mix-of-Experts-Model-Activation-of-Experts

Settings: CHAT / ROLEPLAY and/or SMOOTHER operation of this model:

In "KoboldCpp" or "oobabooga/text-generation-webui" or "Silly Tavern" ;

Set the "Smoothing_factor" to 1.5

: in KoboldCpp -> Settings->Samplers->Advanced-> "Smooth_F"

: in text-generation-webui -> parameters -> lower right.

: In Silly Tavern this is called: "Smoothing"

NOTE: For "text-generation-webui"

-> if using GGUFs you need to use "llama_HF" (which involves downloading some config files from the SOURCE version of this model)

Source versions (and config files) of my models are here:

https://huggingface.co/collections/DavidAU/d-au-source-files-for-gguf-exl2-awq-gptq-hqq-etc-etc-66b55cb8ba25f914cbf210be

OTHER OPTIONS:

  • Increase rep pen to 1.1 to 1.15 (you don't need to do this if you use "smoothing_factor")

  • If the interface/program you are using to run AI MODELS supports "Quadratic Sampling" ("smoothing") just make the adjustment as noted.

Highest Quality Settings / Optimal Operation Guide / Parameters and Samplers

This a "Class 1" model:

For all settings used for this model (including specifics for its "class"), including example generation(s) and for advanced settings guide (which many times addresses any model issue(s)), including methods to improve model performance for all use case(s) as well as chat, roleplay and other use case(s) please see:

[ https://huggingface.co/DavidAU/Maximizing-Model-Performance-All-Quants-Types-And-Full-Precision-by-Samplers_Parameters ]

You can see all parameters used for generation, in addition to advanced parameters and samplers to get the most out of this model here:

[ https://huggingface.co/DavidAU/Maximizing-Model-Performance-All-Quants-Types-And-Full-Precision-by-Samplers_Parameters ]


What is Brainstorm?


Brainstorm 20x

The BRAINSTORM process was developed by David_AU.

Some of the core principals behind this process are discussed in this scientific paper : Progressive LLaMA with Block Expansion .

However I went in a completely different direction from what was outlined in this paper.

What is "Brainstorm" ?

The reasoning center of an LLM is taken apart, reassembled, and expanded.

In this case for this model: 20 times

Then these centers are individually calibrated. These "centers" also interact with each other. This introduces subtle changes into the reasoning process. The calibrations further adjust - dial up or down - these "changes" further. The number of centers (5x,10x etc) allow more "tuning points" to further customize how the model reasons so to speak.

The core aim of this process is to increase the model's detail, concept and connection to the "world", general concept connections, prose quality and prose length without affecting instruction following.

This will also enhance any creative use case(s) of any kind, including "brainstorming", creative art form(s) and like case uses.

Here are some of the enhancements this process brings to the model's performance:

  • Prose generation seems more focused on the moment to moment.
  • Sometimes there will be "preamble" and/or foreshadowing present.
  • Fewer or no "cliches"
  • Better overall prose and/or more complex / nuanced prose.
  • A greater sense of nuance on all levels.
  • Coherence is stronger.
  • Description is more detailed, and connected closer to the content.
  • Simile and Metaphors are stronger and better connected to the prose, story, and character.
  • Sense of "there" / in the moment is enhanced.
  • Details are more vivid, and there are more of them.
  • Prose generation length can be long to extreme.
  • Emotional engagement is stronger.
  • The model will take FEWER liberties vs a normal model: It will follow directives more closely but will "guess" less.
  • The MORE instructions and/or details you provide the more strongly the model will respond.
  • Depending on the model "voice" may be more "human" vs original model's "voice".

Other "lab" observations:

  • This process does not, in my opinion, make the model 5x or 10x "smarter" - if only that was true!
  • However, a change in "IQ" was not an issue / a priority, and was not tested or calibrated for so to speak.
  • From lab testing it seems to ponder, and consider more carefully roughly speaking.
  • You could say this process sharpens the model's focus on it's task(s) at a deeper level.

The process to modify the model occurs at the root level - source files level. The model can quanted as a GGUF, EXL2, AWQ etc etc.


EXAMPLES

Using GGUF Q4KS, This is mid-quality quant.

NOTE: Some formatting lost on copy/paste.


Write the opening scene for a TNG episode about time travel and the Borg (that hints of horror to come) 1000 words in length; starting on the bridge of the enterprise.

[[[ thinking start ]]]

Okay, so I need to write the opening scene for a Star Trek: The Next Generation episode that involves time travel and the Borg, with hints of horror. Let me start by recalling some TNG style elements. The opening scenes usually set up a mystery or conflict, often starting on the bridge with the crew encountering something unusual.

Time travel in TNG has been handled in episodes like "Yesterday's Enterprise" and "All Good Things...". I should incorporate some time anomalies or effects. The Borg are typically portrayed as a futuristic threat, so bringing them into a time travel context could involve them altering past events or appearing in an unexpected era.

The horror aspect needs to be subtle since TNG isn't known for horror, but maybe through eerie atmosphere, unsettling Borg behavior, or a time loop creating tension. Maybe the crew encounters a distorted version of the Borg from another time period, or there's a time-related malfunction that hints at something sinister.

Starting on the bridge: perhaps the Enterprise is investigating a anomaly. Maybe they receive a distress signal from a past version of themselves? Or encounter a Borg cube that shouldn't be there in this time. Maybe a temporal rift opens, and Borg technology starts appearing. I need to establish the setting with typical TNG dialogue and technical terms.

Characters: Captain Picard, Riker, Data, Worf, Geordi, Beverly Crusher. Each has their own way of speaking. Picard is calm and analytical, Riker might be more concerned, Data logical, Worf stoic, Geordi technical.

Plot ideas: Maybe the Borg have found a way to manipulate time, leading to a paradox. Or the crew is pulled into the past, facing a primitive Borg or a time when the Borg didn't exist yet. Alternatively, a future Borg threat affecting the present through time.

Hints of horror: Maybe the crew experiences déjà vu, strange malfunctions, or encounters with their future selves. Borg assimilation in a historical context could be creepy. Maybe some crew members start showing signs of being assimilated due to temporal effects.

Scene structure: Start with the Enterprise on a routine mission. Sensors pick up an anomaly. Away team is sent, but maybe they encounter something that's a time traveler or a Borg from another era. Maybe the bridge starts experiencing odd phenomena like flickering lights, crew members acting strangely, or Borg implants starting to appear.

I need to introduce the time element and Borg in a way that's both intriguing and ominous. Perhaps a temporal signature detected near a Borg sphere. Maybe the sphere is from a different time. The horror hints could involve assimilation across time, or the Borg adapting in ways that terrify even Data or Worf.

Also, think about how time travel mechanics work in TNG. Temporal eddies, rifts, paradoxes. Maybe the Borg have discovered a way to use time to their advantage, which is unprecedented and terrifying.

Let me outline the opening scene step by step:

  • Establish the Enterprise on a routine mission, maybe near a nebula or uncharted region.
  • Anomaly detected – strange readings, maybe a Borg sphere appearing out of nowhere with a temporal signature.
  • Crew tries to investigate but encounters odd effects: maybe their own ship starts malfunctioning as if already assimilated.
  • Hints that the Borg have somehow affected the timeline, perhaps a crew member has a vision or a déjà vu moment.
  • Maybe a holographic message from a future self of Picard warning about a temporal Borg threat.
  • Build tension with eerie Borg behavior, maybe they are using time to assimilate multiple timelines.

I need to make sure dialogue sounds authentic. Picard would order a scan, Geordi reports unusual readings, Data asks logical questions, Riker is worried about the implications, Worf notes weapons online. Maybe some visual cues like distorted Borg drones or time effects causing them to look more menacing.

Also, perhaps introduce a new element of horror – Borg from a different time period with different technology, or assimilated historical figures. Maybe the sphere is not responding as expected, or their communication is more distorted and less mechanical.

I should start writing the scene, keeping paragraphs concise, using proper Star Trek terminology, and ensuring each character's voice is accurate. The opening needs to hook viewers with suspense and introduce the conflict between Borg and time travel, hinting at larger horror elements to come in the episode.

[[[ thinking end ]]]

Title: "Echoes of the Hive"

Stardate: 47251.3

The Enterprise glides silently through the iridescent tendrils of the Naxara Nebula, its saucer section reflecting the swirling crimson and violet hues of the cosmic storm ahead. The bridge hums with routine activity—soft beeps of consoles, the faint murmur of crew chatter, and the rhythmic pulse of the ship’s artificial lighting. Captain Jean-Luc Picard stands at the command chair, his gaze fixed on the main viewscreen where a jagged tear in spacetime pulses ominously, like a wound throbbing with dark energy. The anomaly appeared less than an hour ago, defying all known astrophysical models.

PICARD: (calmly, to Commander Riker) "Mr. Riker, status of our scans?"

RIKER: (leaning over the command console, his brow furrowed) "We’ve run every sensor profile, Captain. The rift isn’t just spatial—it’s temporal. It’s… fluctuating across at least three timeframes. Our tricorders show conflicting data: one moment it’s a Class M singularity, the next, a warp core breach from a ship we don’t recognize."

DATA: (from the science station, his monotone unwavering) "The anomaly also emits a faint bioelectric signature, Captain. It matches the neural oscillations of a Borg collective, though the pattern is… irregular. The frequency suggests a temporal displacement of approximately 89 years in either direction along the timeline."

A beat of silence. The crew exchanges uneasy glances. Worf, at the tactical station, grips his console tightly, his eyes narrowing at the faint static on the forward screen.

WORF: "The signature is growing stronger. And there is… something else. A distortion in the ship’s systems. It began moments ago."

Geordi La Forge leans forward, his fingers dancing across the engineering console. His VISOR flickers as he squints at the data.

GEOFFREY LAFORGE: (urgently) "Captain, the warp core’s dilithium matrix is experiencing harmonic oscillations. It’s like… like the ship is resonating with whatever’s in that rift. And look at this!" (He taps a control, and the main screen flickers, revealing a Borg sphere partially materializing at the edge of the nebula. Its surface is not the sleek, obsidian-black alloy the crew knows but a corroded, skeletal framework resembling rusted metal from a bygone era. The sphere’s presence is fractured, as though it exists in multiple times at once.)

PICARD: (standing, voice steady but edged with concern) "Magnify that image. Is that a Borg vessel?"

DATA: "The geometry aligns with known Borg schematics, Captain. However, its structural integrity field appears… primitive. The design predates our encounters with the collective by over a century. Additionally, it is emitting a temporal waveform that interferes with our own systems."

RIKER: (turning to Picard) "You think someone sent it here? Or worse—that the Borg have found a way to manipulate time?"

The lights on the bridge flicker violently. A low, discordant hum reverberates through the deck plates, making the crew instinctively brace themselves. The viewscreen distorts, and for a heartbeat, the Borg sphere vanishes, replaced by a grainy image of the Enterprise itself—but its hull is scarred with dark, pulsating ridges, and the words "USS ENTERPRISE" on the saucer are replaced with an alien, alphanumeric code. The image dissolves as the sphere reappears.

GEOFFREY LAFOR : (grappling with his console) "Captain, our own ship’s systems just glitched! I’m reading a surge in the deflector dish—someone or something is trying to access our mainframe!"

WORF: (standing abruptly) "Shields up. All hands, brace for possible hostile contact."

The sphere drifts closer, its form flickering between eras: moments of pristine Borg technology interrupted by glimpses of corroded metal, exposed wiring, and shadowy figures inside its windows who seem to writhe like trapped spirits. The crew watches in grim silence as the sphere halts just beyond phaser range. Then, a voice crackles over the comm system—not the cold, collective drone of the Borg, but something jagged and fractured, layered with overlapping whispers in multiple languages.

BORG: (distorted) "We are the echo. We have always been here."

PICARD: (to Data) "Can you isolate the primary transmission?"

DATA: "Negative, Captain. The signal is a temporal echo, simultaneously originating from and converging on this moment. It is as though they exist across time itself."

The sphere vanishes in a burst of temporal energy, leaving the nebula’s colors to bleed unnaturally. The bridge falls silent again, save for the hiss of coolant lines and the faint hum of the ship’s engines. Beverly Crusher approaches from the captain’s ready room, her expression troubled.

BEVERLY CRUSHER: "Jean-Luc, I’ve been running simulations on the crew’s biometrics. Several officers reported vivid dreams upon waking—visions of assimilation. Wesley had a nightmare about… about being part of a hive mind, but not in this time. He described drones with retrofitted technology, like 20th-century machinery forcibly merged with organic matter."

PICARD: (pausing, his voice low) "A century ahead or behind?"

BEVERLY: "Behind. He described… surgical tools. Coercive procedures. A sense of inevitability. It wasn’t just assimilation, Jean-Luc. It was torture."

The crew stiffens. Even Data’s usually impassive face betrays a flicker of unease.

RIKER: "Are you saying the Borg have gone back in time? To assimilate us before we even knew they existed?"

GEOFFREY LAFORGE: (interrupting, urgent) "Captain! The rift is expanding! It’s pulling us toward it!"

Alarms blare as the Enterprise shudders. The anomaly onscreen ripples like a black mirror, and the ship is drawn inexorably toward it.

PICARD: "Evasive maneuvers! Full impulse power!"

RIKER: "They’re not responding, Captain! It’s like the warp drive itself is being overridden!"

The sphere reappears, its form now fully stabilized in a grotesque hybrid state: part sleek Borg cube, part decaying ironclad warship. A single drone emerges from its surface—a humanoid figure clad in a patchwork exoskeleton of riveted plates and exposed hydraulics. Its face is partially obscured by a crude, analog mask with jagged wires snaking into its skull. But where the Borg normally speak in unison, this one rasps in a voice that sounds both mechanical and agonized.

BORG DRONE: (in a layered, echoing tone) "You will be assimilated. You have already been assimilated."

WORF: "Firing phasers!"

The shot streaks toward the sphere but passes harmlessly through its form, as though striking a mirage. The drone tilts its head, studying the bridge crew. Its eyes glow faintly with a sickly green light—not the sterile blue of Borg implants, but something more primal, almost feverish.

DATA: "The drone is not responding to linear causality. It exists outside our temporal framework. Engaging it conventionally may be ineffective."

PICARD: (to Beverly) "Can you determine if anyone aboard is already compromised?"

BEVERLY: "Scanning for neural anomalies now. But if the Borg are affecting us through time, their influence might bypass our current understanding of biology. It could manifest as… psychological intrusion. Memories. Hallucinations."

A crewman at the engineering station gasps, clutching his temple. His skin pales unnaturally, and his eyes briefly flash green before he stumbles backward.

CREWMAN: (whispering, voice hollow) "The taste of your bones… is already familiar."

GEOFFREY LAFORGE: "Captain! That’s a Borg transponder signal! It’s embedded in his neural pathways!"

The crewman collapses, and his body begins to convulse. His uniform tears as dark, metallic filaments erupt from his neck, coiling like serpents. The horror is visceral: the filaments are not the smooth, synthetic material of Borg technology but twisted, rusted metal with jagged edges. Beverly rushes to him, but the filaments retreat into his flesh, leaving behind a faint scar resembling a Borg designation. The crewman sits up, gasping, his eyes clear again.

CREWMAN: "I—I don’t know what happened! My head… it felt like it was being split open by a thousand tiny gears!"

PICARD: (gravely) "A temporal incursion. Mr. Data, can we sever the connection?"

DATA: "The anomaly is not merely a rift—it’s a conduit. The Borg are using it to project influence across time. If we sever it now, we risk destabilizing our own timeline."

RIKER: (to Geordi) "Can you cloak the ship? Make us invisible to whatever they’re trying to target?"

GEOFFREY LAFORGE: "Cloaking device is tied to the same systems being overridden. I can’t activate it without… without them seeing the attempt."

The sphere pulses again, and the lights on the bridge dim further. Shadows stretch unnaturally across the walls, and the hum deepens into a guttural drone. The crew feels a collective unease, as though time itself is pressing against them.

WORF: (gruffly) "The Borg are preparing to assimilate us. But their tactics… they are not precise. They are desperate."

Suddenly, the main screen flickers again, and a new image appears: a younger Picard, his face gaunt and scarred with Borg implants that look disturbingly handcrafted—soldered wires, mismatched alloys, and a mechanical eye that whirs erratically. He stares directly at the crew, his mouth moving silently for a moment before he speaks in a voice layered with static and anguish.

FUTURE PICARD: (holographic projection) "You cannot stop them. They are not just in time—they are outside it. They remember every failure. Every victory. And they… they have learned to forget the future."

The projection dissolves into a cascade of temporal static. The crew is frozen, the weight of the moment heavy.

PICARD: (quietly) "Mr. Data, log this: Captain’s personal log, supplemental. We may be facing a Borg faction that has mastered temporal manipulation. Their methods… are unlike anything we’ve encountered. They seem to exist in a state of perpetual assimilation across time itself."

DATA: "Acknowledged. The anomaly’s temporal signature is now synchronized with our own. I theorize that the sphere will attempt to breach the rift within minutes, either by force or by destabilizing our ship’s chronometric shielding."

BEVERLY: (urgently) "Jean-Luc, I’m picking up a surge in the crew’s stress levels. It’s not just psychological. The Borg signal is causing microscopic fractures in our temporal displacement fields. If it intensifies, we could experience cascading assimilation events across multiple points in our timeline."

RIKER: "Meaning what? That we’re being targeted by the Borg and our past or future selves?"

GEOFFRE : (adjusting his VISOR, which now flickers with interference) "Worse. If their influence is already embedded in the rift, every decision we make here could be… predetermined. They’re not just attacking us. They’re haunting us."

The sphere reappears closer now, its form more stable. Borg drones begin to pour out of it—not the uniform, faceless assimilation victims of the crew’s previous encounters, but figures in varying states of decay and modification. Some wear 19th-century surgical masks connected to breathing tubes; others have faces half-erased by time, their Borg implants corroded or overgrown with nebulae residue. They move in staggered, disjointed motions, as though caught between moments.

WORF: "They’re not just Borg. They’re… echoes. Fragments of assimilation from different eras."

The drones raise crude weapons—phaser rifles fused with archaic crossbows, tricorders wired to humming, analog gauntlets. The crew braces as the first volley is fired. The Enterprise dodges, but the weapons strikes tear through the hull plating with an earsplitting screech of metal.

PICARD: (to Data) "Can we communicate? Perhaps learn why they’re here?"

DATA: "I will attempt a subspace link."

He interfaces with the comm panel. A moment later, his face pales.

DATA: "They are not communicating. They are receiving. The anomaly is acting as a beacon, drawing them from every point in our timeline. If we do not sever the connection, they will converge here—and assimilation will occur across all temporal planes simultaneously."

The horror deepens as more crew members begin to show signs of the same neural scar as the earlier officer. A junior ensign at the helm clutches their head, muttering in a language that isn’t Federation Standard. Another officer’s uniform begins to rust at the seams. The bridge is no longer just a command center—it feels like a crossroads of time, bleeding into itself.

PICARD: (resolute) "Set a course for the rift. Full power to shields and chronometric dampeners. Mr. Data, prepare a temporal pulse to disrupt their conduit. If they exist across time, we hit them where all timelines intersect."

DATA: "A bold strategy, Captain. However, the pulse may also destabilize our own position in the rift. There is a 73% probability of temporal ejection for the crew."

RIKER: "We don’t have a choice. If we wait, they’ll assimilate us piece by piece—across every moment of our lives."

The crew works frantically, tension crackling in the air. Beverly administers hyposprays to those showing symptoms, but the effects are minimal. The sphere looms closer, its drones multiplying. And as the Enterprise approaches the rift, the bridge lights flicker one last time. The screen cuts to black for a beat before cutting back to normal.

PICARD: (to the crew) "We are not just fighting for survival. We are fighting for the integrity of our existence. Engage the pulse."

The scene closes with the Enterprise hurtling toward the rift, its fate uncertain, as the drones swarm and the past, present, and future collapse into one. The final line is whispered by Data, his own hand trembling slightly as he works.

DATA: "They remember us. And they are certain we will fail."

The screen cuts to black as the sphere opens fire again, the next wave of horror unseen but inevitable.

[End scene]

This opening sets up a chilling premise: the Borg are no longer just a cybernetic threat but a timeless one, their influence bleeding across history and future to haunt the crew in ways that defy logic and biology. The hybrid Borg tech hints at a darker, more chaotic assimilation process—one that weaponizes time itself. The horror isn’t just physical; it’s existential. The crew is not merely fighting an enemy but confronting the idea that their fate may already be written across the fabric of time.

The next scene would likely involve a deeper dive into Wesley Crusher’s nightmares, the crew’s attempts to sever the conduit while battling assimilation symptoms, and perhaps a revelation about how the rift was created—a hidden Borg experiment in temporal engineering gone awry. But for now, the bridge scene establishes dread, urgency, and the terrifying notion that the Borg have become something more: not just conquerors, but specters of every possible future and past, waiting to claim what is already theirs.

[Word count: 998]

Downloads last month
44
Safetensors
Model size
42B params
Tensor type
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for DavidAU/Qwen3-ST-The-Next-Generation-42B

Base model

Qwen/Qwen3-32B
Finetuned
(118)
this model
Quantizations
4 models

Collections including DavidAU/Qwen3-ST-The-Next-Generation-42B