A merge of several Yi 34B models with a singular goal: 40K+ context, instruct-enhanced storytelling.
Disappointed with some quirks of my previous kitchen sink merges (like token/instruct formats from various models showing up when they shouldn't), I've gone 'back to the basics' and picked a few Vicuna-format only models:
cgato/Thespis-34b-v0.7 is trained on the "Username: {Input} / BotName: {Response}" format, to emphasize it in the merge (but not force it). It also seems to work for multi-character stories.
Doctor-Shotgun/limarpv3-yi-llama-34b-lora is trained on roleplaying data, but merged at a modest weight to not over emphasize it. This is the only non-vicuna model (being alpaca format), but it doesn't seem to interefere with the Vicuna format or adversely affect long-context perplexity
migtissera/Tess-M-Creative-v1.0 and NousResearch/Nous-Capybara-34B are both "undertrained" Yi models. I find they excel at raw completion performance (like long novel continuations) while still retaining some Vicuna instruct ability. This may be why some still prefer the original Tess 1.0/Capybara merge.
I consider this a more "focused" merge that previous ones. I will investigate other models (perhaps chatML models?) for a more "factual assistant" focused merge, as well as a coding-focused merge if I can't find one to suit my needs.
Chinese models with large tokenizer vocabularies like Yi need careful parameter tuning due to their huge logit sampling "tails." Yi in particular also runs relatively "hot" even at lower temperatures.
Otherwise, I recommend a lower temperature with 0.1 or higher MinP, a little repetition penalty, and mirostat with a low tau, and no other samplers. See the explanation here: https://github.com/ggerganov/llama.cpp/pull/3841
@MarinaraSpaghetti has extensively tested the model and recommended the following settings. They seem to work quite well:
24GB GPUs can efficiently run Yi-34B-200K models at 40K-90K context with exllamav2, and performant UIs like exui. I go into more detail in this post. Empty 16GB GPUs can still run the high context with aggressive quantization.
To load/train this in full-context backends like transformers, you must change max_position_embeddings in config.json to a lower value than 200,000, otherwise you will OOM! I do not recommend running high context without context-efficient backends that support flash attention + 8 bit kv cache, like exllamav2, litellm, vllm or unsloth.
This is a possible base for a storytelling finetune/LASER in the future, once I can bite the bullet and rent some A100s or a MI300.
I have tested this merge with with novel-style continuation (but not much chat-style roleplay), and some assistant-style responses and long context analysis. I haven't seen any refusals so far.
Merge Details
Merge Method
This model was merged using the DARETIES merge method using /home/alpha/Models/Raw/chargoddard_Yi-34B-200K-Llama as a base.
The following YAML configuration was used to produce this model:
yaml
1models:2-model: /home/alpha/Models/Raw/chargoddard_Yi-34B-200K-Llama
3# No parameters necessary for base model4-model: /home/alpha/Models/Raw/migtissera_Tess-34B-v1.5b
5#Emphasize the beginning of Vicuna format models6parameters:7weight:0.198density:0.599-model: /home/alpha/Models/Raw/Nous-Capybara-34B
10parameters:11weight:0.1912density:0.5513# Vicuna format14-model: /home/alpha/Models/Raw/migtissera_Tess-M-Creative-v1.0
15parameters:16weight:0.0517density:0.5518-model: /home/alpha/Models/Raw/DrNicefellow_ChatAllInOne-Yi-34B-200K-V1
19parameters:20weight:0.1921density:0.5522-model: adamo1139/yi-34b-200k-rawrr-dpo-2+Doctor-Shotgun/limarpv3-yi-llama-34b-lora
23parameters:24weight:0.1925density:0.4826-model: /home/alpha/Models/Raw/cgato_Thespis-34b-DPO-v0.7
27parameters:28weight:0.1929density:0.59303132merge_method: dare_ties
33tokenizer_source: union
34base_model: /home/alpha/Models/Raw/chargoddard_Yi-34B-200K-Llama
35parameters:36int8_mask:true37dtype: bfloat16
Self Promotion
I'm part of a AI startup called Holocene AI!
We're new, busy, and still setting things up. But if you have any business inquiries, want a job, or just want some consultation, feel free to shoot me an email. We have expertise in RAG applications and llama/embeddings model finetuning, and absolutely none of the nonsense of scammy AI startups.
I also set up a Ko-Fi! I want to run some (personal) training/LASERing as well, at 100K context or so. If you'd like to buy me 10 minutes on an A100 (or 5 seconds on an MI300X), I'd appreciate it: https://ko-fi.com/alphaatlas