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.
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:
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.
K2HorizonForCausalLM (custom Transformers implementation included in this repository)5.17.0max_position_embeddings = 524288The 524,288 position setting is a configuration value, not a claim that long-context quality has been evaluated for this export.
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.
62ff493e8cae7c706a9eda313ada15e7baeb04a51c11f651650bd8c4f202f363merge_provenance.json and export_manifest.json for the recorded checks and file hashes.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.
model-00002-of-00006.safetensors 4.0 GBmodel-00005-of-00006.safetensors 4.0 GBmodel-00004-of-00006.safetensors 4.0 GBmodel-00003-of-00006.safetensors 4.0 GBmodel-00001-of-00006.safetensors 2.1 GBmodel-00006-of-00006.safetensors 76 MB有文件?提交种子。
提交种子