K2-Horizon-7B Unreal Engine (Blueprint + C++)

This repository contains a standalone BF16 merge of the K2-Horizon-7B base model and the v152 Unreal Engine Blueprint + C++ adapter. The adapter was applied once to the original, unquantized BF16 base. This is export revision v160.

The model is intended for Unreal Engine Blueprint and C++ assistance. The export itself has not been evaluated with generation benchmarks; please validate its behavior on your own tasks.

GGUF for 8 GB GPUs

Use K2-Horizon-7B-UnrealEngine-Q4_K_M.gguf for local inference on an 8 GB GPU. It is a 5.59 GB Q4_K_M quantization of the merged BF16 model. The original BF16 Transformers weights remain available in this repository.

Recommended LM Studio starting settings:

  • Context length: 8,192 tokens
  • GPU offload: maximum/all layers
  • Flash Attention: enabled
  • If LM Studio reports insufficient VRAM, lower the context length to 4,096 tokens

The model metadata advertises a 524,288-token maximum context, but that context size is not practical on an 8 GB GPU. Quantization reduces model weight memory; KV cache memory still grows with context length.

In LM Studio, download or import the Q4_K_M GGUF file rather than the BF16 GGUF or Safetensors files.

Model details

  • Base model: IFM/K2-Horizon-7B
  • Adapter: v152 Blueprint + C++ adapter
  • Export: standalone BF16 weights, adapter merged once
  • Architecture: K2HorizonForCausalLM (custom Transformers implementation included in this repository)
  • Transformers version used for the export: 5.17.0
  • Position configuration: max_position_embeddings = 524288
  • Tokenizer and chat template are included
  • Sharded model files total 18,019,196,335 bytes (~18.0 GB); runtime memory use is higher and depends on device and context length

The 524,288 position setting is a configuration value, not a claim that long-context quality has been evaluated for this export.

Load with Transformers

Install PyTorch, Accelerate, and the specified Transformers version in an environment suitable for BF16 inference:

pip install "transformers==5.17.0" accelerate

The repository includes custom model code. trust_remote_code=True allows Transformers to load and execute that code; review the files before enabling it if you do not trust the repository source.

import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

model_id = "qwfasf/K2-Horizon-7B-UnrealEngine"

tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
    model_id,
    trust_remote_code=True,
    dtype=torch.bfloat16,
    device_map="auto",
)

The export manifest records that the standalone model reload without the adapter passed. Generation and benchmark evaluation were not run for this export.

Merge and validation notes

  • The v152 adapter was merged once into the original unquantized BF16 base; no optimizer or training updates were performed during export.
  • The adapter was trained using NF4, while this export merges it into the unquantized BF16 base. BF16 merge rounding means this export may differ numerically from live NF4 + LoRA inference.
  • Export provenance reports 252 merged modules, 504 adapter tensors checked, and 327 saved tensors verified against the merged model.
  • The tokenizer vocabulary and sample template were checked against the parent model.
  • Adapter SHA-256: 62ff493e8cae7c706a9eda313ada15e7baeb04a51c11f651650bd8c4f202f363
  • See merge_provenance.json and export_manifest.json for the recorded checks and file hashes.

License

This derivative is published under the Apache-2.0 license, following the base model card. Review the base model's license and terms before use.

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

Model tree for qwfasf/K2-Horizon-7B-UnrealEngine

Quantized
(46)
this model
Quantizations
2 models