初始化项目,由ModelHub XC社区提供模型
Model: closestfriend/brie-v2-qwen2.5-3b Source: Original Platform
This commit is contained in:
36
.gitattributes
vendored
Normal file
36
.gitattributes
vendored
Normal 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
|
||||
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
||||
335
README.md
Normal file
335
README.md
Normal file
@@ -0,0 +1,335 @@
|
||||
---
|
||||
library_name: transformers
|
||||
base_model: Qwen/Qwen2.5-3B-Instruct
|
||||
language:
|
||||
- en
|
||||
license: apache-2.0
|
||||
pipeline_tag: text-generation
|
||||
tags:
|
||||
- philosophy
|
||||
- creative-writing
|
||||
- continental-philosophy
|
||||
- fine-tuned
|
||||
- merged
|
||||
- qwen2.5
|
||||
- text-generation-inference
|
||||
model-index:
|
||||
- name: Brie v2 Qwen 2.5 3B (Merged)
|
||||
results:
|
||||
- task:
|
||||
type: text-generation
|
||||
name: Text Generation (In-Domain, 2025 Judges)
|
||||
dataset:
|
||||
name: Multi-Domain Comprehensive (57 prompts)
|
||||
type: custom
|
||||
metrics:
|
||||
- type: win_rate
|
||||
value: 95.2
|
||||
name: Win Rate vs Baseline (Claude 3.5 Sonnet, blind A/B, n=42)
|
||||
verified: false
|
||||
- type: win_rate
|
||||
value: 78.9
|
||||
name: Win Rate vs Baseline (Claude Opus 4, blind A/B, n=57)
|
||||
verified: false
|
||||
- type: win_rate
|
||||
value: 93.0
|
||||
name: Win Rate vs Baseline (GPT-4o, blind A/B, n=57)
|
||||
verified: false
|
||||
- type: win_rate
|
||||
value: 94.7
|
||||
name: Win Rate vs Baseline (Gemini 2.5 Flash Lite, blind A/B, n=57)
|
||||
verified: false
|
||||
- task:
|
||||
type: text-generation
|
||||
name: Text Generation (In-Domain, 2026 Judges)
|
||||
dataset:
|
||||
name: Multi-Domain Comprehensive (57 prompts)
|
||||
type: custom
|
||||
metrics:
|
||||
- type: win_rate
|
||||
value: 80.7
|
||||
name: Win Rate vs Baseline (Claude Haiku 4.5, blind A/B, n=57)
|
||||
verified: false
|
||||
- type: win_rate
|
||||
value: 71.9
|
||||
name: Win Rate vs Baseline (Claude Sonnet 4.5, blind A/B, n=57)
|
||||
verified: false
|
||||
- type: win_rate
|
||||
value: 87.7
|
||||
name: Win Rate vs Baseline (GPT-5, blind A/B, n=57)
|
||||
verified: false
|
||||
- type: win_rate
|
||||
value: 75.4
|
||||
name: Win Rate vs Baseline (Gemini 3 Pro, blind A/B, n=57)
|
||||
verified: false
|
||||
- task:
|
||||
type: text-generation
|
||||
name: Text Generation (Out-of-Domain, 2026 Judges)
|
||||
dataset:
|
||||
name: Out-of-Domain (15 prompts - coding, math, practical)
|
||||
type: custom
|
||||
metrics:
|
||||
- type: win_rate
|
||||
value: 60.0
|
||||
name: Win Rate vs Baseline (Claude Sonnet 4.5, blind A/B, n=15)
|
||||
verified: false
|
||||
- type: win_rate
|
||||
value: 46.7
|
||||
name: Win Rate vs Baseline (GPT-5, blind A/B, n=15)
|
||||
verified: false
|
||||
- type: win_rate
|
||||
value: 40.0
|
||||
name: Win Rate vs Baseline (Gemini 3 Pro, blind A/B, n=15)
|
||||
verified: false
|
||||
---
|
||||
|
||||
> **Part of the Brie Model Family**: Merged standalone model. See also: [Brie v2 3B (LoRA adapter)](https://huggingface.co/closestfriend/brie-v2-3b) | [Brie Llama 3.2 3B](https://huggingface.co/closestfriend/brie-llama-3b) | [Brie Qwen 2.5 0.5B](https://huggingface.co/closestfriend/brie-qwen2.5-0.5b)
|
||||
>
|
||||
> **Paper**: [Human-Curated Data Authoring with LLMs: A Small-Data Approach to Domain Adaptation](https://doi.org/10.5281/zenodo.17657737)
|
||||
|
||||
# Brie v2 Qwen 2.5 3B (Merged)
|
||||
|
||||
A fully merged fine-tune of Qwen/Qwen2.5-3B-Instruct specializing in continental philosophy, speculative reasoning, and conceptual development for creative work. This is the standalone transformers version of [closestfriend/brie-v2-3b](https://huggingface.co/closestfriend/brie-v2-3b) — the LoRA adapter weights have been permanently baked into the base model weights via `merge_and_unload()`.
|
||||
|
||||
## Model Details
|
||||
|
||||
### Model Description
|
||||
|
||||
Brie is a domain-adapted language model trained on 1,213 examples authored by the researcher through iterative discussions, using LLMs as authoring tools. It specializes in continental philosophical analysis (phenomenology, existentialism, critical theory), speculative and experimental thinking, conceptual reframing for artistic and theoretical work, and contemplative prose.
|
||||
|
||||
This merged variant loads like any standard transformers model — no PEFT/adapter dependencies required.
|
||||
|
||||
- **Developed by:** Hunter Karman (closestfriend)
|
||||
- **Model type:** Causal Language Model (Qwen2ForCausalLM), merged fine-tune
|
||||
- **Language(s):** English
|
||||
- **License:** Apache 2.0
|
||||
- **Finetuned from:** Qwen/Qwen2.5-3B-Instruct
|
||||
- **Adapter source:** [closestfriend/brie-v2-3b](https://huggingface.co/closestfriend/brie-v2-3b)
|
||||
|
||||
### Model Sources
|
||||
|
||||
- **Repository:** https://github.com/closestfriend/efficient-domain-adaptation
|
||||
- **Paper:** [Human-Curated Data Authoring with LLMs: A Small-Data Approach to Domain Adaptation](https://doi.org/10.5281/zenodo.17657737)
|
||||
- **LoRA adapter:** [closestfriend/brie-v2-3b](https://huggingface.co/closestfriend/brie-v2-3b)
|
||||
|
||||
## Uses
|
||||
|
||||
### Direct Use
|
||||
|
||||
Load and run directly with `transformers` — no PEFT required. Best suited for philosophical analysis, speculative reasoning, conceptual brainstorming, and contemplative/creative writing.
|
||||
|
||||
### Downstream Use
|
||||
|
||||
Can be used as a base for further fine-tuning on philosophy or creative writing tasks. Quantization (GGUF, GPTQ, AWQ) should work without modification since it's a standard transformers checkpoint.
|
||||
|
||||
### Out-of-Scope Use
|
||||
|
||||
Not optimized for coding, mathematics, factual Q&A, or practical task completion. Out-of-domain performance is at parity with the base model (~49% avg with 2026 judges), not improved. Should not be used for tasks requiring factual accuracy or up-to-date world knowledge.
|
||||
|
||||
## Bias, Risks, and Limitations
|
||||
|
||||
1. **Domain specialization:** Strongly optimized for philosophical and creative writing. Out-of-domain tasks (coding, math, practical) show no improvement over baseline.
|
||||
2. **Training data scope:** 1,213 examples authored by a single researcher from a specific philosophical tradition (continental). Other philosophical traditions are underrepresented.
|
||||
3. **Language:** Trained and evaluated exclusively on English content.
|
||||
4. **Judge variance:** Blind A/B evaluation showed up to 23-point spread across judges (Sonnet 4.5: 71.9% vs GPT-5: 87.7% with 2026 judges), reflecting different sensitivity to stylistic vs. accuracy dimensions.
|
||||
5. **Small training set:** 202 unique prompts (with ~6 responses each) — generalization outside philosophy/creative domains is not guaranteed.
|
||||
|
||||
### Recommendations
|
||||
|
||||
Use for philosophical, creative, and contemplative writing tasks where the base Qwen 2.5 3B feels generic. Pair with a factual retrieval system for knowledge-intensive tasks. Not a replacement for general-purpose models.
|
||||
|
||||
## How to Get Started with the Model
|
||||
|
||||
```python
|
||||
from transformers import AutoModelForCausalLM, AutoTokenizer
|
||||
import torch
|
||||
|
||||
model = AutoModelForCausalLM.from_pretrained(
|
||||
"closestfriend/brie-v2-qwen2.5-3b",
|
||||
torch_dtype=torch.float16,
|
||||
device_map="auto",
|
||||
)
|
||||
tokenizer = AutoTokenizer.from_pretrained("closestfriend/brie-v2-qwen2.5-3b")
|
||||
|
||||
messages = [
|
||||
{"role": "system", "content": "You are a helpful AI assistant."},
|
||||
{"role": "user", "content": "Explain the concept of 'being-in-the-world' from phenomenology."}
|
||||
]
|
||||
|
||||
text = tokenizer.apply_chat_template(
|
||||
messages,
|
||||
tokenize=False,
|
||||
add_generation_prompt=True
|
||||
)
|
||||
inputs = tokenizer(text, return_tensors="pt").to(model.device)
|
||||
|
||||
outputs = model.generate(
|
||||
**inputs,
|
||||
max_new_tokens=512,
|
||||
temperature=0.75,
|
||||
do_sample=True,
|
||||
top_p=0.95,
|
||||
)
|
||||
response = tokenizer.decode(outputs[0][inputs.input_ids.shape[1]:], skip_special_tokens=True)
|
||||
print(response)
|
||||
```
|
||||
|
||||
Recommended generation parameters: temperature 0.75, top_p 0.95, max_new_tokens 512–1024.
|
||||
|
||||
## Training Details
|
||||
|
||||
### Training Data
|
||||
|
||||
1,213 examples authored by the researcher through iterative discussions using Claude, ChatGPT, Mistral, and Kimi as discussion partners (no Qwen or Llama models used during data authoring to avoid contamination). The dataset covers continental philosophy (phenomenology, existentialism, ontology), speculative reasoning, philosophical argumentation, and contemplative prose.
|
||||
|
||||
A key methodological feature: 202 unique prompts with multiple high-quality responses each (~6 per prompt). The model learns a distribution of valid responses rather than memorizing fixed pairs, which explains strong generalization despite the small prompt count.
|
||||
|
||||
### Training Procedure
|
||||
|
||||
LoRA fine-tuning of Qwen/Qwen2.5-3B-Instruct, then merged via `merge_and_unload()`.
|
||||
|
||||
#### Training Hyperparameters
|
||||
|
||||
- Training regime: bf16 mixed precision
|
||||
- LoRA rank: 16, alpha: 32, dropout: 0.05
|
||||
- Epochs: 2 (290 steps)
|
||||
- Batch size: 2 per device, gradient accumulation 4 (effective batch 8)
|
||||
- Learning rate: 2e-4, linear schedule, 20 warmup steps
|
||||
- Max sequence length: 2048
|
||||
|
||||
#### Speeds, Sizes, Times
|
||||
|
||||
- Hardware: NVIDIA RTX 5090 (32GB VRAM) on RunPod
|
||||
- Training time: ~1–2 hours
|
||||
- Training cost: ~$3
|
||||
- Training date: October 16, 2025
|
||||
|
||||
## Evaluation
|
||||
|
||||
Evaluated via blind A/B testing against baseline Qwen 2.5 3B Instruct with randomized presentation order (controls for position bias). **Eight independent judges from three laboratories spanning two model generations (2025–2026)** ensure temporal robustness.
|
||||
|
||||
### Judge Panel
|
||||
|
||||
**2025 Judges (Original Evaluation):**
|
||||
|
||||
| Judge | Provider | Version |
|
||||
|---|---|---|
|
||||
| Claude 3.5 Sonnet | Anthropic | claude-3-5-sonnet-20241022 |
|
||||
| Claude Opus 4 | Anthropic | claude-opus-4-20250514 |
|
||||
| GPT-4o | OpenAI | gpt-4o-2024-08-06 |
|
||||
| Gemini 2.5 Flash Lite | Google | gemini-2.5-flash-lite |
|
||||
|
||||
**2026 Judges (Re-Evaluation):**
|
||||
|
||||
| Judge | Provider | Version |
|
||||
|---|---|---|
|
||||
| Claude Haiku 4.5 | Anthropic | claude-haiku-4.5 |
|
||||
| Claude Sonnet 4.5 | Anthropic | claude-sonnet-4.5 |
|
||||
| GPT-5 | OpenAI | gpt-5 |
|
||||
| Gemini 3 Pro | Google | gemini-3-pro-preview |
|
||||
|
||||
### Results
|
||||
|
||||
**In-Domain (Philosophy/Creative, n=57) — 2025 Judges:**
|
||||
|
||||
```
|
||||
┌───────────────────────┬───────────┬──────────┐
|
||||
│ Judge │ Provider │ Win Rate │
|
||||
├───────────────────────┼───────────┼──────────┤
|
||||
│ Claude 3.5 Sonnet │ Anthropic │ 95.2% │
|
||||
├───────────────────────┼───────────┼──────────┤
|
||||
│ Claude Opus 4 │ Anthropic │ 78.9% │
|
||||
├───────────────────────┼───────────┼──────────┤
|
||||
│ GPT-4o │ OpenAI │ 93.0% │
|
||||
├───────────────────────┼───────────┼──────────┤
|
||||
│ Gemini 2.5 Flash Lite │ Google │ 94.7% │
|
||||
├───────────────────────┼───────────┼──────────┤
|
||||
│ Aggregate (2025) │ — │ 91.2% │
|
||||
└───────────────────────┴───────────┴──────────┘
|
||||
```
|
||||
|
||||
**In-Domain (Philosophy/Creative, n=57) — 2026 Judges:**
|
||||
|
||||
```
|
||||
┌───────────────────┬───────────┬──────────┐
|
||||
│ Judge │ Provider │ Win Rate │
|
||||
├───────────────────┼───────────┼──────────┤
|
||||
│ Claude Haiku 4.5 │ Anthropic │ 80.7% │
|
||||
├───────────────────┼───────────┼──────────┤
|
||||
│ Claude Sonnet 4.5 │ Anthropic │ 71.9% │
|
||||
├───────────────────┼───────────┼──────────┤
|
||||
│ GPT-5 │ OpenAI │ 87.7% │
|
||||
├───────────────────┼───────────┼──────────┤
|
||||
│ Gemini 3 Pro │ Google │ 75.4% │
|
||||
├───────────────────┼───────────┼──────────┤
|
||||
│ Average (2026) │ — │ 78.9% │
|
||||
└───────────────────┴───────────┴──────────┘
|
||||
```
|
||||
|
||||
**Out-of-Domain (Coding/Math/Practical, n=15) — 2026 Judges:**
|
||||
|
||||
```
|
||||
┌───────────────────┬──────────┐
|
||||
│ Judge │ Win Rate │
|
||||
├───────────────────┼──────────┤
|
||||
│ Claude Sonnet 4.5 │ 60.0% │
|
||||
├───────────────────┼──────────┤
|
||||
│ GPT-5 │ 46.7% │
|
||||
├───────────────────┼──────────┤
|
||||
│ Gemini 3 Pro │ 40.0% │
|
||||
├───────────────────┼──────────┤
|
||||
│ Average │ ~49% │
|
||||
└───────────────────┴──────────┘
|
||||
```
|
||||
|
||||
Cross-lab pairwise agreement (GPT-4o ↔ Gemini 2.5 Flash Lite): 91.2%.
|
||||
|
||||
#### Summary
|
||||
|
||||
All eight judges from three independent labs across two model generations show strong preference for Brie on in-domain tasks (71.9–95.2%). **Temporal robustness confirmed**: while 2026 judges show somewhat lower absolute win rates (78.9% avg vs 90.5% avg for 2025), this reflects more conservative evaluation standards as the field advances — not a regression in model quality. No catastrophic forgetting: out-of-domain performance is at parity with the base model (~49%).
|
||||
|
||||
Note on evaluation integrity: A bug in winner determination logic was discovered during evaluation (inverting 56% of results). All reported metrics reflect corrected data. Full documentation included in the training repository.
|
||||
|
||||
## Environmental Impact
|
||||
|
||||
- Hardware Type: NVIDIA RTX 5090
|
||||
- Hours used: ~1–2 hours
|
||||
- Cloud Provider: RunPod
|
||||
- Compute Region: Not specified
|
||||
- Carbon Emitted: Minimal (~$3 compute cost)
|
||||
|
||||
## Technical Specifications
|
||||
|
||||
### Model Architecture and Objective
|
||||
|
||||
Qwen2ForCausalLM (causal language model). 36 hidden layers, hidden size 2048, 16 attention heads, 2 KV heads (GQA), intermediate size 11008, max position embeddings 32768, vocab size 151936.
|
||||
|
||||
### Compute Infrastructure
|
||||
|
||||
#### Hardware
|
||||
|
||||
NVIDIA RTX 5090 (32GB VRAM) on RunPod cloud.
|
||||
|
||||
#### Software
|
||||
|
||||
HuggingFace Transformers, PEFT, TRL (SFTTrainer). Merged with `peft.AutoPeftModelForCausalLM.merge_and_unload()`.
|
||||
|
||||
## Citation
|
||||
|
||||
```bibtex
|
||||
@misc{karman2026brie,
|
||||
author = {Karman, Hunter},
|
||||
title = {Human-Curated Data Authoring with LLMs: A Small-Data Approach to Domain Adaptation},
|
||||
year = {2026},
|
||||
doi = {10.5281/zenodo.17657737},
|
||||
url = {https://doi.org/10.5281/zenodo.17657737}
|
||||
}
|
||||
```
|
||||
|
||||
## Model Card Authors
|
||||
|
||||
Hunter Karman (closestfriend)
|
||||
|
||||
## Model Card Contact
|
||||
|
||||
closestfriend on HuggingFace
|
||||
54
chat_template.jinja
Normal file
54
chat_template.jinja
Normal file
@@ -0,0 +1,54 @@
|
||||
{%- if tools %}
|
||||
{{- '<|im_start|>system\n' }}
|
||||
{%- if messages[0]['role'] == 'system' %}
|
||||
{{- messages[0]['content'] }}
|
||||
{%- else %}
|
||||
{{- 'You are Qwen, created by Alibaba Cloud. You are a helpful assistant.' }}
|
||||
{%- endif %}
|
||||
{{- "\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>" }}
|
||||
{%- for tool in tools %}
|
||||
{{- "\n" }}
|
||||
{{- tool | tojson }}
|
||||
{%- endfor %}
|
||||
{{- "\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n" }}
|
||||
{%- else %}
|
||||
{%- if messages[0]['role'] == 'system' %}
|
||||
{{- '<|im_start|>system\n' + messages[0]['content'] + '<|im_end|>\n' }}
|
||||
{%- else %}
|
||||
{{- '<|im_start|>system\nYou are Qwen, created by Alibaba Cloud. You are a helpful assistant.<|im_end|>\n' }}
|
||||
{%- endif %}
|
||||
{%- endif %}
|
||||
{%- for message in messages %}
|
||||
{%- if (message.role == "user") or (message.role == "system" and not loop.first) or (message.role == "assistant" and not message.tool_calls) %}
|
||||
{{- '<|im_start|>' + message.role + '\n' + message.content + '<|im_end|>' + '\n' }}
|
||||
{%- elif message.role == "assistant" %}
|
||||
{{- '<|im_start|>' + message.role }}
|
||||
{%- if message.content %}
|
||||
{{- '\n' + message.content }}
|
||||
{%- endif %}
|
||||
{%- for tool_call in message.tool_calls %}
|
||||
{%- if tool_call.function is defined %}
|
||||
{%- set tool_call = tool_call.function %}
|
||||
{%- endif %}
|
||||
{{- '\n<tool_call>\n{"name": "' }}
|
||||
{{- tool_call.name }}
|
||||
{{- '", "arguments": ' }}
|
||||
{{- tool_call.arguments | tojson }}
|
||||
{{- '}\n</tool_call>' }}
|
||||
{%- endfor %}
|
||||
{{- '<|im_end|>\n' }}
|
||||
{%- elif message.role == "tool" %}
|
||||
{%- if (loop.index0 == 0) or (messages[loop.index0 - 1].role != "tool") %}
|
||||
{{- '<|im_start|>user' }}
|
||||
{%- endif %}
|
||||
{{- '\n<tool_response>\n' }}
|
||||
{{- message.content }}
|
||||
{{- '\n</tool_response>' }}
|
||||
{%- if loop.last or (messages[loop.index0 + 1].role != "tool") %}
|
||||
{{- '<|im_end|>\n' }}
|
||||
{%- endif %}
|
||||
{%- endif %}
|
||||
{%- endfor %}
|
||||
{%- if add_generation_prompt %}
|
||||
{{- '<|im_start|>assistant\n' }}
|
||||
{%- endif %}
|
||||
69
config.json
Normal file
69
config.json
Normal file
@@ -0,0 +1,69 @@
|
||||
{
|
||||
"architectures": [
|
||||
"Qwen2ForCausalLM"
|
||||
],
|
||||
"attention_dropout": 0.0,
|
||||
"bos_token_id": 151643,
|
||||
"dtype": "float16",
|
||||
"eos_token_id": 151645,
|
||||
"hidden_act": "silu",
|
||||
"hidden_size": 2048,
|
||||
"initializer_range": 0.02,
|
||||
"intermediate_size": 11008,
|
||||
"layer_types": [
|
||||
"full_attention",
|
||||
"full_attention",
|
||||
"full_attention",
|
||||
"full_attention",
|
||||
"full_attention",
|
||||
"full_attention",
|
||||
"full_attention",
|
||||
"full_attention",
|
||||
"full_attention",
|
||||
"full_attention",
|
||||
"full_attention",
|
||||
"full_attention",
|
||||
"full_attention",
|
||||
"full_attention",
|
||||
"full_attention",
|
||||
"full_attention",
|
||||
"full_attention",
|
||||
"full_attention",
|
||||
"full_attention",
|
||||
"full_attention",
|
||||
"full_attention",
|
||||
"full_attention",
|
||||
"full_attention",
|
||||
"full_attention",
|
||||
"full_attention",
|
||||
"full_attention",
|
||||
"full_attention",
|
||||
"full_attention",
|
||||
"full_attention",
|
||||
"full_attention",
|
||||
"full_attention",
|
||||
"full_attention",
|
||||
"full_attention",
|
||||
"full_attention",
|
||||
"full_attention",
|
||||
"full_attention"
|
||||
],
|
||||
"max_position_embeddings": 32768,
|
||||
"max_window_layers": 70,
|
||||
"model_type": "qwen2",
|
||||
"num_attention_heads": 16,
|
||||
"num_hidden_layers": 36,
|
||||
"num_key_value_heads": 2,
|
||||
"pad_token_id": null,
|
||||
"rms_norm_eps": 1e-06,
|
||||
"rope_parameters": {
|
||||
"rope_theta": 1000000.0,
|
||||
"rope_type": "default"
|
||||
},
|
||||
"sliding_window": null,
|
||||
"tie_word_embeddings": true,
|
||||
"transformers_version": "5.2.0",
|
||||
"use_cache": true,
|
||||
"use_sliding_window": false,
|
||||
"vocab_size": 151936
|
||||
}
|
||||
14
generation_config.json
Normal file
14
generation_config.json
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"bos_token_id": 151643,
|
||||
"do_sample": true,
|
||||
"eos_token_id": [
|
||||
151645,
|
||||
151643
|
||||
],
|
||||
"pad_token_id": 151643,
|
||||
"repetition_penalty": 1.05,
|
||||
"temperature": 0.7,
|
||||
"top_k": 20,
|
||||
"top_p": 0.8,
|
||||
"transformers_version": "5.2.0"
|
||||
}
|
||||
3
model.safetensors
Normal file
3
model.safetensors
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:4ab16a40a1ac4049011ac222e2764d675c406f9f5c2cbdfd27851c0e5517deb7
|
||||
size 6171926680
|
||||
3
tokenizer.json
Normal file
3
tokenizer.json
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:3fd169731d2cbde95e10bf356d66d5997fd885dd8dbb6fb4684da3f23b2585d8
|
||||
size 11421892
|
||||
14
tokenizer_config.json
Normal file
14
tokenizer_config.json
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"add_prefix_space": false,
|
||||
"backend": "tokenizers",
|
||||
"bos_token": null,
|
||||
"clean_up_tokenization_spaces": false,
|
||||
"eos_token": "<|im_end|>",
|
||||
"errors": "replace",
|
||||
"is_local": false,
|
||||
"model_max_length": 131072,
|
||||
"pad_token": "<|endoftext|>",
|
||||
"split_special_tokens": false,
|
||||
"tokenizer_class": "Qwen2Tokenizer",
|
||||
"unk_token": null
|
||||
}
|
||||
Reference in New Issue
Block a user