Skip to content

Instantly share code, notes, and snippets.

@152334H
Created December 2, 2023 16:35
Show Gist options
  • Save 152334H/d8a68b51b83bac008a02e69ecc81d5c1 to your computer and use it in GitHub Desktop.
Save 152334H/d8a68b51b83bac008a02e69ecc81d5c1 to your computer and use it in GitHub Desktop.
openhermes-2.5-mistral-7b config patched to run as a llamaforcausallm (with ctx len 4k)
$ cat OpenHermes-2.5-Mistral-7B/config.json
{
"_name_or_path": "mistralai/Mistral-7B-v0.1",
"architectures": [
"LlamaForCausalLM"
],
"bos_token_id": 1,
"eos_token_id": 32000,
"hidden_act": "silu",
"hidden_size": 4096,
"initializer_range": 0.02,
"intermediate_size": 14336,
"max_position_embeddings": 4096,
"model_type": "llama",
"num_attention_heads": 32,
"num_hidden_layers": 32,
"num_key_value_heads": 8,
"rms_norm_eps": 1e-05,
"rope_theta": 10000.0,
"tie_word_embeddings": false,
"torch_dtype": "bfloat16",
"transformers_version": "4.34.0.dev0",
"use_cache": false,
"vocab_size": 32002
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment