初始化项目,由ModelHub XC社区提供模型
Model: cstr/llama3.1-8b-spaetzle-v74 Source: Original Platform
This commit is contained in:
35
.gitattributes
vendored
Normal file
35
.gitattributes
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.arrow filter=lfs diff=lfs merge=lfs -text
|
||||
*.bin filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
||||
*.ftz filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.h5 filter=lfs diff=lfs merge=lfs -text
|
||||
*.joblib filter=lfs diff=lfs merge=lfs -text
|
||||
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
||||
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
||||
*.model filter=lfs diff=lfs merge=lfs -text
|
||||
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
||||
*.npy filter=lfs diff=lfs merge=lfs -text
|
||||
*.npz filter=lfs diff=lfs merge=lfs -text
|
||||
*.onnx filter=lfs diff=lfs merge=lfs -text
|
||||
*.ot filter=lfs diff=lfs merge=lfs -text
|
||||
*.parquet filter=lfs diff=lfs merge=lfs -text
|
||||
*.pb filter=lfs diff=lfs merge=lfs -text
|
||||
*.pickle filter=lfs diff=lfs merge=lfs -text
|
||||
*.pkl filter=lfs diff=lfs merge=lfs -text
|
||||
*.pt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pth filter=lfs diff=lfs merge=lfs -text
|
||||
*.rar filter=lfs diff=lfs merge=lfs -text
|
||||
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
||||
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
||||
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
||||
*.tar filter=lfs diff=lfs merge=lfs -text
|
||||
*.tflite filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.wasm filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
||||
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
||||
107
README.md
Normal file
107
README.md
Normal file
@@ -0,0 +1,107 @@
|
||||
---
|
||||
base_model:
|
||||
- cstr/llama3.1-8b-spaetzle-v59
|
||||
- cstr/llama3.1-8b-spaetzle-v63
|
||||
- cstr/llama3.1-8b-spaetzle-v66
|
||||
- cstr/llama3.1-8b-spaetzle-v73
|
||||
tags:
|
||||
- merge
|
||||
- mergekit
|
||||
license: llama3.1
|
||||
language:
|
||||
- en
|
||||
- de
|
||||
library_name: transformers
|
||||
---
|
||||
|
||||
# llama3.1-8b-spaetzle-v74
|
||||
|
||||
llama3.1-8b-spaetzle-v74 is a merge of the following models:
|
||||
* [cstr/llama3.1-8b-spaetzle-v59](https://huggingface.co/cstr/llama3.1-8b-spaetzle-v59)
|
||||
* [cstr/llama3.1-8b-spaetzle-v63](https://huggingface.co/cstr/llama3.1-8b-spaetzle-v63)
|
||||
* [cstr/llama3.1-8b-spaetzle-v66](https://huggingface.co/cstr/llama3.1-8b-spaetzle-v66)
|
||||
* [cstr/llama3.1-8b-spaetzle-v73](https://huggingface.co/cstr/llama3.1-8b-spaetzle-v73)
|
||||
|
||||
EQ-Bench v2_de: 68.05 169/171, en: 75.27 - which is not the best, but it produces decent answers for some trick questions, and i have a sweet spot for that ;)
|
||||
|
||||
## 🧩 Configuration
|
||||
|
||||
```yamlmodels:
|
||||
models:
|
||||
- model: cstr/llama3.1-8b-spaetzle-v59
|
||||
parameters:
|
||||
weight: 0.3
|
||||
density: 0.5
|
||||
- model: cstr/llama3.1-8b-spaetzle-v63
|
||||
parameters:
|
||||
weight: 0.15
|
||||
density: 0.5
|
||||
- model: cstr/llama3.1-8b-spaetzle-v66
|
||||
parameters:
|
||||
weight: 0.15
|
||||
density: 0.5
|
||||
- model: cstr/llama3.1-8b-spaetzle-v73
|
||||
parameters:
|
||||
weight: 0.4
|
||||
density: 0.5
|
||||
base_model: cstr/llama3.1-8b-spaetzle-v59
|
||||
merge_method: della_linear
|
||||
parameters:
|
||||
int8_mask: true
|
||||
normalize: true
|
||||
epsilon: 0.1
|
||||
lambda: 1.0
|
||||
density: 0.7
|
||||
dtype: bfloat16
|
||||
```
|
||||
|
||||
## 💻 Usage
|
||||
|
||||
```python
|
||||
!pip install -qU transformers accelerate
|
||||
|
||||
from transformers import AutoTokenizer
|
||||
import transformers
|
||||
import torch
|
||||
|
||||
model = "cstr/llama3.1-8b-spaetzle-v74"
|
||||
messages = [{"role": "user", "content": "What is a large language model?"}]
|
||||
|
||||
tokenizer = AutoTokenizer.from_pretrained(model)
|
||||
prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
|
||||
pipeline = transformers.pipeline(
|
||||
"text-generation",
|
||||
model=model,
|
||||
torch_dtype=torch.float16,
|
||||
device_map="auto",
|
||||
)
|
||||
|
||||
outputs = pipeline(prompt, max_new_tokens=256, do_sample=True, temperature=0.7, top_k=50, top_p=0.95)
|
||||
print(outputs[0]["generated_text"])
|
||||
```
|
||||
|
||||
## EU AI Act Art. 53 — provider obligations
|
||||
|
||||
Added 2026-08-02 during an account-wide provenance review.
|
||||
|
||||
**This is a model merge, not a format conversion.** Most `cstr/*` repositories
|
||||
are GGUF conversions, where the upstream research team remains the provider of
|
||||
the model and the conversion changes only the numeric representation of the
|
||||
weights. A merge produces a model that did not previously exist, so under
|
||||
Regulation (EU) 2024/1689 the maintainer of this repository is plausibly the
|
||||
**provider** of it, and the duties that survive the Art. 53(2)
|
||||
free-and-open-source exemption — Art. 53(1)(c) and 53(1)(d) — attach here rather
|
||||
than upstream.
|
||||
|
||||
**Art. 53(1)(c) — copyright policy.** No training corpus was assembled by this
|
||||
repository. Merging combines weights that other providers already published; it
|
||||
performs no text or data mining, so no rights reservation under Art. 4(3) of
|
||||
Directive (EU) 2019/790 was engaged by this step. Copyright questions arising
|
||||
from how the constituent models were themselves trained attach to their
|
||||
respective providers. Any credible claim that this repository redistributes
|
||||
material it has no right to redistribute will be acted on — contact via the
|
||||
Community tab.
|
||||
|
||||
**Art. 53(1)(d) — training content.** No data was used to train this model: it
|
||||
is a weight-space combination of models trained by others, and its training
|
||||
content is theirs. Of the 4 constituent models this card names, **1 are still published and 3 are not**: `cstr/llama3.1-8b-spaetzle-v63`, `cstr/llama3.1-8b-spaetzle-v66`, `cstr/llama3.1-8b-spaetzle-v73`. For those, the training-content chain cannot be followed from this card, and no summary is reconstructed here in their place — an untraceable summary presented as a traceable one would be worse than the gap.
|
||||
39
config.json
Normal file
39
config.json
Normal file
@@ -0,0 +1,39 @@
|
||||
{
|
||||
"_name_or_path": "cstr/llama3.1-8b-spaetzle-v59",
|
||||
"architectures": [
|
||||
"LlamaForCausalLM"
|
||||
],
|
||||
"attention_bias": false,
|
||||
"attention_dropout": 0.0,
|
||||
"bos_token_id": 128000,
|
||||
"eos_token_id": [
|
||||
128001,
|
||||
128008,
|
||||
128009
|
||||
],
|
||||
"hidden_act": "silu",
|
||||
"hidden_size": 4096,
|
||||
"initializer_range": 0.02,
|
||||
"intermediate_size": 14336,
|
||||
"max_position_embeddings": 131072,
|
||||
"mlp_bias": false,
|
||||
"model_type": "llama",
|
||||
"num_attention_heads": 32,
|
||||
"num_hidden_layers": 32,
|
||||
"num_key_value_heads": 8,
|
||||
"pretraining_tp": 1,
|
||||
"rms_norm_eps": 1e-05,
|
||||
"rope_scaling": {
|
||||
"factor": 8.0,
|
||||
"high_freq_factor": 4.0,
|
||||
"low_freq_factor": 1.0,
|
||||
"original_max_position_embeddings": 8192,
|
||||
"rope_type": "llama3"
|
||||
},
|
||||
"rope_theta": 500000.0,
|
||||
"tie_word_embeddings": false,
|
||||
"torch_dtype": "bfloat16",
|
||||
"transformers_version": "4.44.2",
|
||||
"use_cache": true,
|
||||
"vocab_size": 128256
|
||||
}
|
||||
27
mergekit_config.yml
Normal file
27
mergekit_config.yml
Normal file
@@ -0,0 +1,27 @@
|
||||
models:
|
||||
models:
|
||||
- model: cstr/llama3.1-8b-spaetzle-v59
|
||||
parameters:
|
||||
weight: 0.3
|
||||
density: 0.5
|
||||
- model: cstr/llama3.1-8b-spaetzle-v63
|
||||
parameters:
|
||||
weight: 0.15
|
||||
density: 0.5
|
||||
- model: cstr/llama3.1-8b-spaetzle-v66
|
||||
parameters:
|
||||
weight: 0.15
|
||||
density: 0.5
|
||||
- model: cstr/llama3.1-8b-spaetzle-v73
|
||||
parameters:
|
||||
weight: 0.4
|
||||
density: 0.5
|
||||
base_model: cstr/llama3.1-8b-spaetzle-v59
|
||||
merge_method: della_linear
|
||||
parameters:
|
||||
int8_mask: true
|
||||
normalize: true
|
||||
epsilon: 0.1
|
||||
lambda: 1.0
|
||||
density: 0.7
|
||||
dtype: bfloat16
|
||||
3
model-00001-of-00017.safetensors
Normal file
3
model-00001-of-00017.safetensors
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:29fee74eb4284197819b2cb1a7b103604935e4f8da585ad10046cd7f2d8e79e7
|
||||
size 1050673280
|
||||
3
model-00002-of-00017.safetensors
Normal file
3
model-00002-of-00017.safetensors
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:9b4ee5b390740837ebf4a9ac423cdcbc5ef99f27b6a74e3fae9f2d96753c97ef
|
||||
size 1050673296
|
||||
3
model-00003-of-00017.safetensors
Normal file
3
model-00003-of-00017.safetensors
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:024ea6cc3f33a63f6e7c90dd4dc6ccd52bb231fbe401c31e768f45ffdb21261d
|
||||
size 989899000
|
||||
3
model-00004-of-00017.safetensors
Normal file
3
model-00004-of-00017.safetensors
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:837fc81136ba9b5cde1ccb6c6b8d2fe382b037dac8b451e91628eb8b067c5f3f
|
||||
size 989890728
|
||||
3
model-00005-of-00017.safetensors
Normal file
3
model-00005-of-00017.safetensors
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:6137f94773c48048fe4f491133c1f5aa397b49248db21b031720003ed412eb8f
|
||||
size 998287760
|
||||
3
model-00006-of-00017.safetensors
Normal file
3
model-00006-of-00017.safetensors
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:0d021acb50cbb0822f155a8c23bd9ef36ec34de0313e961bfc4a675b04e0dcf0
|
||||
size 947956216
|
||||
3
model-00007-of-00017.safetensors
Normal file
3
model-00007-of-00017.safetensors
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:0527f2599394c32cef8b976d4afbc98aa4837a2087b15a1bbde2fa4d640d7a57
|
||||
size 989890728
|
||||
3
model-00008-of-00017.safetensors
Normal file
3
model-00008-of-00017.safetensors
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:aefc732d18e6ac40685af81b684b81ee4d233b557788cfa906d913116e54cc4d
|
||||
size 989890720
|
||||
3
model-00009-of-00017.safetensors
Normal file
3
model-00009-of-00017.safetensors
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:a81b5d1fbdc348069c56a8ed9472173389afbca4ea6579068f76a0baac776bfe
|
||||
size 998287760
|
||||
3
model-00010-of-00017.safetensors
Normal file
3
model-00010-of-00017.safetensors
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:8aa825110e4d2fb7322ab353d03d4c6c64079c1779783f762e2ec4ea2c23dd29
|
||||
size 947956216
|
||||
3
model-00011-of-00017.safetensors
Normal file
3
model-00011-of-00017.safetensors
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:cf5367a4831de2bb77836b4dda958cef90763316d7afa3ebd2ef203b20a4279f
|
||||
size 989890728
|
||||
3
model-00012-of-00017.safetensors
Normal file
3
model-00012-of-00017.safetensors
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:69e5d75c87fcf5e814fa1ea99cac5d19efd2bbeab180201942841b15e1a4f5bf
|
||||
size 989890728
|
||||
3
model-00013-of-00017.safetensors
Normal file
3
model-00013-of-00017.safetensors
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:281e703509e694888f32c290c995f1a9813e66720729c5c1f169bf11ba196fee
|
||||
size 998287752
|
||||
3
model-00014-of-00017.safetensors
Normal file
3
model-00014-of-00017.safetensors
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:97bf72fc9343474dfe6b1c3556cd8c86978ddd14938ca1f4e1929729f88b392d
|
||||
size 947956208
|
||||
3
model-00015-of-00017.safetensors
Normal file
3
model-00015-of-00017.safetensors
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:66f8dfb553aa7d2dfa384b113695363a1004d8f7d3b6b63d575b5137afc45f7b
|
||||
size 989890712
|
||||
3
model-00016-of-00017.safetensors
Normal file
3
model-00016-of-00017.safetensors
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:2b5530a3c07928cddcf3a0e7105dd919b214f7f2d7a7a88e7bc5a3e446850a29
|
||||
size 989890712
|
||||
3
model-00017-of-00017.safetensors
Normal file
3
model-00017-of-00017.safetensors
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:212935618d0a581925aab61cb07b6c2ea46e4f1edd7f58206cb2014360e9ddaf
|
||||
size 201343792
|
||||
1
model.safetensors.index.json
Normal file
1
model.safetensors.index.json
Normal file
File diff suppressed because one or more lines are too long
16
special_tokens_map.json
Normal file
16
special_tokens_map.json
Normal file
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"bos_token": {
|
||||
"content": "<|begin_of_text|>",
|
||||
"lstrip": false,
|
||||
"normalized": false,
|
||||
"rstrip": false,
|
||||
"single_word": false
|
||||
},
|
||||
"eos_token": {
|
||||
"content": "<|eot_id|>",
|
||||
"lstrip": false,
|
||||
"normalized": false,
|
||||
"rstrip": false,
|
||||
"single_word": false
|
||||
}
|
||||
}
|
||||
410563
tokenizer.json
Normal file
410563
tokenizer.json
Normal file
File diff suppressed because it is too large
Load Diff
2062
tokenizer_config.json
Normal file
2062
tokenizer_config.json
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user