初始化项目,由ModelHub XC社区提供模型
Model: srs6901/Vikras-MixP Source: Original Platform
This commit is contained in:
50
Vikra-HCT-YeAM-LLaGemma-1B/README.md
Normal file
50
Vikra-HCT-YeAM-LLaGemma-1B/README.md
Normal file
@@ -0,0 +1,50 @@
|
||||
---
|
||||
license: gemma
|
||||
library_name: transformers
|
||||
pipeline_tag: text-generation
|
||||
base_model: google/gemma-3-1b-pt
|
||||
---
|
||||
|
||||
# Vikra-HCT-YeAM-LLaGemma-1B
|
||||
Llama-3.2-1B-Instruct + Gemma-3-1b-pt
|
||||
|
||||
HCT architecture release. YeAM (Yet Another Merge) implementation invariant.
|
||||
|
||||
## What it is
|
||||
|
||||
A compact 1B-class model produced via HCT-compatible merging.
|
||||
The checkpoint is published in standard Hugging Face format (safetensors + index).
|
||||
|
||||
## YeAM summary
|
||||
|
||||
YeAM performs a controlled merge in a real 4D geometric formulation with ray-intersection alignment in parameter space.
|
||||
It also supports targeted knowledge injection (distillation-style) into a chosen model while remaining HF-compatible.
|
||||
|
||||
## Usage (Transformers)
|
||||
|
||||
```python
|
||||
from transformers import AutoTokenizer, AutoModelForCausalLM
|
||||
import torch
|
||||
|
||||
m = "/path/to/Vikra-HCT-YeAM-LLaGemma-1B"
|
||||
|
||||
tok = AutoTokenizer.from_pretrained(m, use_fast=False)
|
||||
model = AutoModelForCausalLM.from_pretrained(
|
||||
m,
|
||||
torch_dtype=torch.bfloat16,
|
||||
device_map="cuda",
|
||||
).eval()
|
||||
|
||||
inputs = tok("Hello!", return_tensors="pt").to(model.device)
|
||||
out = model.generate(**inputs, max_new_tokens=128)
|
||||
print(tok.decode(out[0], skip_special_tokens=True))
|
||||
```
|
||||
|
||||
## GGUF
|
||||
|
||||
Convert and quantize with llama.cpp (example):
|
||||
|
||||
```bash
|
||||
python3 /path/to/llama.cpp/convert_hf_to_gguf.py /path/to/model --outtype bf16 --outfile model.bf16.gguf
|
||||
/path/to/llama.cpp/build/bin/llama-quantize model.bf16.gguf model.Q6_K.gguf Q6_K
|
||||
```
|
||||
3
Vikra-HCT-YeAM-LLaGemma-1B/added_tokens.json
Normal file
3
Vikra-HCT-YeAM-LLaGemma-1B/added_tokens.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"<image_soft_token>": 262144
|
||||
}
|
||||
37
Vikra-HCT-YeAM-LLaGemma-1B/config.json
Normal file
37
Vikra-HCT-YeAM-LLaGemma-1B/config.json
Normal file
@@ -0,0 +1,37 @@
|
||||
{
|
||||
"architectures": [
|
||||
"Gemma3ForCausalLM"
|
||||
],
|
||||
"attention_bias": false,
|
||||
"attention_dropout": 0.0,
|
||||
"attn_logit_softcapping": null,
|
||||
"bos_token_id": 2,
|
||||
"cache_implementation": "hybrid",
|
||||
"eos_token_id": [
|
||||
1,
|
||||
106
|
||||
],
|
||||
"final_logit_softcapping": null,
|
||||
"head_dim": 256,
|
||||
"hidden_activation": "gelu_pytorch_tanh",
|
||||
"hidden_size": 1152,
|
||||
"initializer_range": 0.02,
|
||||
"intermediate_size": 6912,
|
||||
"max_position_embeddings": 32768,
|
||||
"model_type": "gemma3_text",
|
||||
"num_attention_heads": 4,
|
||||
"num_hidden_layers": 26,
|
||||
"num_key_value_heads": 1,
|
||||
"pad_token_id": 0,
|
||||
"query_pre_attn_scalar": 256,
|
||||
"rms_norm_eps": 1e-06,
|
||||
"rope_local_base_freq": 10000,
|
||||
"rope_scaling": null,
|
||||
"rope_theta": 1000000,
|
||||
"sliding_window": 512,
|
||||
"sliding_window_pattern": 6,
|
||||
"torch_dtype": "bfloat16",
|
||||
"transformers_version": "4.50.0.dev0",
|
||||
"use_cache": true,
|
||||
"vocab_size": 262144
|
||||
}
|
||||
13
Vikra-HCT-YeAM-LLaGemma-1B/generation_config.json
Normal file
13
Vikra-HCT-YeAM-LLaGemma-1B/generation_config.json
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"bos_token_id": 2,
|
||||
"cache_implementation": "hybrid",
|
||||
"do_sample": true,
|
||||
"eos_token_id": [
|
||||
1,
|
||||
106
|
||||
],
|
||||
"pad_token_id": 0,
|
||||
"top_k": 64,
|
||||
"top_p": 0.95,
|
||||
"transformers_version": "4.50.0.dev0"
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:0d327513594d6e96139c1660d5389b20cc9de3797796b69ca9cb8d21ad420c31
|
||||
size 1081244120
|
||||
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:ff4980829a32e0feccf675d107ffc2ebc495139577c3ce7460ffc3a0fe8ff76f
|
||||
size 918566568
|
||||
1
Vikra-HCT-YeAM-LLaGemma-1B/model.safetensors.index.json
Normal file
1
Vikra-HCT-YeAM-LLaGemma-1B/model.safetensors.index.json
Normal file
File diff suppressed because one or more lines are too long
33
Vikra-HCT-YeAM-LLaGemma-1B/special_tokens_map.json
Normal file
33
Vikra-HCT-YeAM-LLaGemma-1B/special_tokens_map.json
Normal file
@@ -0,0 +1,33 @@
|
||||
{
|
||||
"boi_token": "<start_of_image>",
|
||||
"bos_token": {
|
||||
"content": "<bos>",
|
||||
"lstrip": false,
|
||||
"normalized": false,
|
||||
"rstrip": false,
|
||||
"single_word": false
|
||||
},
|
||||
"eoi_token": "<end_of_image>",
|
||||
"eos_token": {
|
||||
"content": "<eos>",
|
||||
"lstrip": false,
|
||||
"normalized": false,
|
||||
"rstrip": false,
|
||||
"single_word": false
|
||||
},
|
||||
"image_token": "<image_soft_token>",
|
||||
"pad_token": {
|
||||
"content": "<pad>",
|
||||
"lstrip": false,
|
||||
"normalized": false,
|
||||
"rstrip": false,
|
||||
"single_word": false
|
||||
},
|
||||
"unk_token": {
|
||||
"content": "<unk>",
|
||||
"lstrip": false,
|
||||
"normalized": false,
|
||||
"rstrip": false,
|
||||
"single_word": false
|
||||
}
|
||||
}
|
||||
3
Vikra-HCT-YeAM-LLaGemma-1B/tokenizer.json
Normal file
3
Vikra-HCT-YeAM-LLaGemma-1B/tokenizer.json
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:4667f2089529e8e7657cfb6d1c19910ae71ff5f28aa7ab2ff2763330affad795
|
||||
size 33384568
|
||||
3
Vikra-HCT-YeAM-LLaGemma-1B/tokenizer.model
Normal file
3
Vikra-HCT-YeAM-LLaGemma-1B/tokenizer.model
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:1299c11d7cf632ef3b4e11937501358ada021bbdf7c47638d13c0ee982f2e79c
|
||||
size 4689074
|
||||
51346
Vikra-HCT-YeAM-LLaGemma-1B/tokenizer_config.json
Normal file
51346
Vikra-HCT-YeAM-LLaGemma-1B/tokenizer_config.json
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user