初始化项目,由ModelHub XC社区提供模型

Model: second-state/Llama-3-8B-Instruct-Gradient-1048k-GGUF
Source: Original Platform
This commit is contained in:
ModelHub XC
2026-05-27 00:48:12 +08:00
commit 24fceb861d
17 changed files with 197 additions and 0 deletions

36
.gitattributes vendored Normal file
View File

@@ -0,0 +1,36 @@
*.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
*.gguf filter=lfs diff=lfs merge=lfs -text

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3ef6124aa67cded967ef545c020bebfc13b7e8931f0423cae06b7491d4c4c06a
size 3179131136

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a808b91cde6d819a75e7e3bb07fad87a376521495d3f9335901c4997f454eef8
size 4321956096

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:bdacad367d2d172f405328ddfa4db5ae5311320f8034bbbe4a568d919aaba4c9
size 4018917632

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d804260111d0408e1959d41da9b5ffeeabbca03c9a2468eee1da6940190518ed
size 3664498944

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:054d5fb734a9c9040e37dae466cd485040d352eb743aea22e34129dcc14b2278
size 4661211392

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:fb6c81ab41d9873839d444f64893ccce01606473642b7d3fef3e5850bda21264
size 4920733952

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f13111f10bb4ceca3fb69098444d5715a6324023d6b18bceefac2e8ceec097f4
size 4692668672

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1e29aa74d7baa6fe0e80f7ab6bd14f85ccacc5d2fd2cea5779a17e785db1eae4
size 5599293696

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:95d7a76d6d723792e77c66c814929460f1715aaff324860696d05436b770b929
size 5732987136

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f39899b28396cf77b165245cc03a8bc5ea5249efe5de8a46ab611aee4b30d806
size 5599293696

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4962ed758b314da060bfc65d25aa82bc045e6223f369341b72104c2ccc4e8299
size 6596006144

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1eb42e00debee39850aa512a0c31cd7185b1989dd2a2b16fe9ad9ebe04549cc8
size 8540770560

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f73d1fa08a670f08482d8050867af7b63ccf074f70ed8c1c95463c2c6839fe97
size 16068890816

93
README.md Normal file
View File

@@ -0,0 +1,93 @@
---
license: other
license_name: llama3
model_name: Llama-3-8B-Instruct-Gradient-1048k
base_model: gradientai/Llama-3-8B-Instruct-Gradient-1048k
inference: false
model_creator: gradient.ai
model_type: llama
pipeline_tag: text-generation
quantized_by: Second State Inc.
language:
- en
tags:
- meta
- llama-3
---
<!-- header start -->
<!-- 200823 -->
<div style="width: auto; margin-left: auto; margin-right: auto">
<img src="https://github.com/LlamaEdge/LlamaEdge/raw/dev/assets/logo.svg" style="width: 100%; min-width: 400px; display: block; margin: auto;">
</div>
<hr style="margin-top: 1.0em; margin-bottom: 1.0em;">
<!-- header end -->
# Llama-3-8B-Instruct-Gradient-1048k-GGUF
## Original Model
[gradientai/Llama-3-8B-Instruct-Gradient-1048k](https://huggingface.co/gradientai/Llama-3-8B-Instruct-Gradient-1048k)
## Run with LlamaEdge
- LlamaEdge version: [v0.9.0](https://github.com/LlamaEdge/LlamaEdge/releases/tag/0.9.0) and above
- Prompt template
- Prompt type: `llama-3-chat`
- Prompt string
```text
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
{{ system_prompt }}<|eot_id|><|start_header_id|>user<|end_header_id|>
{{ user_message_1 }}<|eot_id|><|start_header_id|>assistant<|end_header_id|>
{{ model_answer_1 }}<|eot_id|><|start_header_id|>user<|end_header_id|>
{{ user_message_2 }}<|eot_id|><|start_header_id|>assistant<|end_header_id|>
```
- Context size: `1000000`
- Run as LlamaEdge service
```bash
wasmedge --dir .:. --nn-preload default:GGML:AUTO:Llama-3-8B-Instruct-Gradient-1048k-Q5_K_M.gguf \
llama-api-server.wasm \
--prompt-template llama-3-chat \
--ctx-size 1000000 \
--model-name llama-3-8b-instruct-gradient-1048k
```
- Run as LlamaEdge command app
```bash
wasmedge --dir .:. --nn-preload default:GGML:AUTO:Llama-3-8B-Instruct-Gradient-1048k-Q5_K_M.gguf \
llama-chat.wasm \
--prompt-template llama-3-chat \
--ctx-size 1000000 \
```
## Quantized GGUF Models
| Name | Quant method | Bits | Size | Use case |
| ---- | ---- | ---- | ---- | ----- |
| [Llama-3-8B-Instruct-Gradient-1048k-Q2_K.gguf](https://huggingface.co/second-state/Llama-3-8B-Instruct-Gradient-1048k-GGUF/blob/main/Llama-3-8B-Instruct-Gradient-1048k-Q2_K.gguf) | Q2_K | 2 | 3.18 GB| smallest, significant quality loss - not recommended for most purposes |
| [Llama-3-8B-Instruct-Gradient-1048k-Q3_K_L.gguf](https://huggingface.co/second-state/Llama-3-8B-Instruct-Gradient-1048k-GGUF/blob/main/Llama-3-8B-Instruct-Gradient-1048k-Q3_K_L.gguf) | Q3_K_L | 3 | 4.32 GB| small, substantial quality loss |
| [Llama-3-8B-Instruct-Gradient-1048k-Q3_K_M.gguf](https://huggingface.co/second-state/Llama-3-8B-Instruct-Gradient-1048k-GGUF/blob/main/Llama-3-8B-Instruct-Gradient-1048k-Q3_K_M.gguf) | Q3_K_M | 3 | 4.02 GB| very small, high quality loss |
| [Llama-3-8B-Instruct-Gradient-1048k-Q3_K_S.gguf](https://huggingface.co/second-state/Llama-3-8B-Instruct-Gradient-1048k-GGUF/blob/main/Llama-3-8B-Instruct-Gradient-1048k-Q3_K_S.gguf) | Q3_K_S | 3 | 3.66 GB| very small, high quality loss |
| [Llama-3-8B-Instruct-Gradient-1048k-Q4_0.gguf](https://huggingface.co/second-state/Llama-3-8B-Instruct-Gradient-1048k-GGUF/blob/main/Llama-3-8B-Instruct-Gradient-1048k-Q4_0.gguf) | Q4_0 | 4 | 4.66 GB| legacy; small, very high quality loss - prefer using Q3_K_M |
| [Llama-3-8B-Instruct-Gradient-1048k-Q4_K_M.gguf](https://huggingface.co/second-state/Llama-3-8B-Instruct-Gradient-1048k-GGUF/blob/main/Llama-3-8B-Instruct-Gradient-1048k-Q4_K_M.gguf) | Q4_K_M | 4 | 4.92 GB| medium, balanced quality - recommended |
| [Llama-3-8B-Instruct-Gradient-1048k-Q4_K_S.gguf](https://huggingface.co/second-state/Llama-3-8B-Instruct-Gradient-1048k-GGUF/blob/main/Llama-3-8B-Instruct-Gradient-1048k-Q4_K_S.gguf) | Q4_K_S | 4 | 4.69 GB| small, greater quality loss |
| [Llama-3-8B-Instruct-Gradient-1048k-Q5_0.gguf](https://huggingface.co/second-state/Llama-3-8B-Instruct-Gradient-1048k-GGUF/blob/main/Llama-3-8B-Instruct-Gradient-1048k-Q5_0.gguf) | Q5_0 | 5 | 5.6 GB| legacy; medium, balanced quality - prefer using Q4_K_M |
| [Llama-3-8B-Instruct-Gradient-1048k-Q5_K_M.gguf](https://huggingface.co/second-state/Llama-3-8B-Instruct-Gradient-1048k-GGUF/blob/main/Llama-3-8B-Instruct-Gradient-1048k-Q5_K_M.gguf) | Q5_K_M | 5 | 5.73 GB| large, very low quality loss - recommended |
| [Llama-3-8B-Instruct-Gradient-1048k-Q5_K_S.gguf](https://huggingface.co/second-state/Llama-3-8B-Instruct-Gradient-1048k-GGUF/blob/main/Llama-3-8B-Instruct-Gradient-1048k-Q5_K_S.gguf) | Q5_K_S | 5 | 5.6 GB| large, low quality loss - recommended |
| [Llama-3-8B-Instruct-Gradient-1048k-Q6_K.gguf](https://huggingface.co/second-state/Llama-3-8B-Instruct-Gradient-1048k-GGUF/blob/main/Llama-3-8B-Instruct-Gradient-1048k-Q6_K.gguf) | Q6_K | 6 | 6.6 GB| very large, extremely low quality loss |
| [Llama-3-8B-Instruct-Gradient-1048k-Q8_0.gguf](https://huggingface.co/second-state/Llama-3-8B-Instruct-Gradient-1048k-GGUF/blob/main/Llama-3-8B-Instruct-Gradient-1048k-Q8_0.gguf) | Q8_0 | 8 | 8.54 GB| very large, extremely low quality loss - not recommended |
| [Llama-3-8B-Instruct-Gradient-1048k-f16.gguf](https://huggingface.co/second-state/Llama-3-8B-Instruct-Gradient-1048k-GGUF/blob/main/Llama-3-8B-Instruct-Gradient-1048k-f16.gguf) | f16 | 16 | 16.1 GB| |
*Quantized with llama.cpp b2734.*

28
config.json Normal file
View File

@@ -0,0 +1,28 @@
{
"_name_or_path": "gradientai/llama3-run1-stage524k-fm-v3",
"architectures": [
"LlamaForCausalLM"
],
"attention_bias": false,
"attention_dropout": 0.0,
"bos_token_id": 128000,
"eos_token_id": 128001,
"hidden_act": "silu",
"hidden_size": 4096,
"initializer_range": 0.02,
"intermediate_size": 14336,
"max_position_embeddings": 1048576,
"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": null,
"rope_theta": 2804339835.0,
"tie_word_embeddings": false,
"torch_dtype": "bfloat16",
"transformers_version": "4.39.1",
"use_cache": true,
"vocab_size": 128256
}

1
configuration.json Normal file
View File

@@ -0,0 +1 @@
{"framework": "pytorch", "task": "text-generation", "allow_remote": true}