Text Generation
Transformers
Safetensors
English
llama
text-generation-inference
unsloth
conversational
Instructions to use originalTimi/Hypa-Orpheus-Step-latest-16bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use originalTimi/Hypa-Orpheus-Step-latest-16bit with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="originalTimi/Hypa-Orpheus-Step-latest-16bit") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("originalTimi/Hypa-Orpheus-Step-latest-16bit") model = AutoModelForCausalLM.from_pretrained("originalTimi/Hypa-Orpheus-Step-latest-16bit", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use originalTimi/Hypa-Orpheus-Step-latest-16bit with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "originalTimi/Hypa-Orpheus-Step-latest-16bit" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "originalTimi/Hypa-Orpheus-Step-latest-16bit", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/originalTimi/Hypa-Orpheus-Step-latest-16bit
- SGLang
How to use originalTimi/Hypa-Orpheus-Step-latest-16bit with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "originalTimi/Hypa-Orpheus-Step-latest-16bit" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "originalTimi/Hypa-Orpheus-Step-latest-16bit", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "originalTimi/Hypa-Orpheus-Step-latest-16bit" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "originalTimi/Hypa-Orpheus-Step-latest-16bit", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Unsloth Studio
How to use originalTimi/Hypa-Orpheus-Step-latest-16bit with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for originalTimi/Hypa-Orpheus-Step-latest-16bit to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for originalTimi/Hypa-Orpheus-Step-latest-16bit to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for originalTimi/Hypa-Orpheus-Step-latest-16bit to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="originalTimi/Hypa-Orpheus-Step-latest-16bit", max_seq_length=2048, ) - Docker Model Runner
How to use originalTimi/Hypa-Orpheus-Step-latest-16bit with Docker Model Runner:
docker model run hf.co/originalTimi/Hypa-Orpheus-Step-latest-16bit
Commit ·
9456b8e
0
Parent(s):
Duplicate from hypaai/Hypa-Orpheus-Step-latest-16bit
Browse filesCo-authored-by: Hypa-Intelligence <hypaai@users.noreply.huggingface.co>
- .gitattributes +36 -0
- README.md +21 -0
- chat_template.jinja +93 -0
- config.json +37 -0
- generation_config.json +11 -0
- handler.py +330 -0
- model-00001-of-00002.safetensors +3 -0
- model-00002-of-00002.safetensors +3 -0
- model.safetensors.index.json +261 -0
- requirements.txt +19 -0
- tokenizer.json +3 -0
- tokenizer_config.json +0 -0
.gitattributes
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
*.7z filter=lfs diff=lfs merge=lfs -text
|
| 2 |
+
*.arrow filter=lfs diff=lfs merge=lfs -text
|
| 3 |
+
*.bin filter=lfs diff=lfs merge=lfs -text
|
| 4 |
+
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
| 5 |
+
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
| 6 |
+
*.ftz filter=lfs diff=lfs merge=lfs -text
|
| 7 |
+
*.gz filter=lfs diff=lfs merge=lfs -text
|
| 8 |
+
*.h5 filter=lfs diff=lfs merge=lfs -text
|
| 9 |
+
*.joblib filter=lfs diff=lfs merge=lfs -text
|
| 10 |
+
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
| 11 |
+
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
| 12 |
+
*.model filter=lfs diff=lfs merge=lfs -text
|
| 13 |
+
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
| 14 |
+
*.npy filter=lfs diff=lfs merge=lfs -text
|
| 15 |
+
*.npz filter=lfs diff=lfs merge=lfs -text
|
| 16 |
+
*.onnx filter=lfs diff=lfs merge=lfs -text
|
| 17 |
+
*.ot filter=lfs diff=lfs merge=lfs -text
|
| 18 |
+
*.parquet filter=lfs diff=lfs merge=lfs -text
|
| 19 |
+
*.pb filter=lfs diff=lfs merge=lfs -text
|
| 20 |
+
*.pickle filter=lfs diff=lfs merge=lfs -text
|
| 21 |
+
*.pkl filter=lfs diff=lfs merge=lfs -text
|
| 22 |
+
*.pt filter=lfs diff=lfs merge=lfs -text
|
| 23 |
+
*.pth filter=lfs diff=lfs merge=lfs -text
|
| 24 |
+
*.rar filter=lfs diff=lfs merge=lfs -text
|
| 25 |
+
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
| 26 |
+
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
| 27 |
+
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
| 28 |
+
*.tar filter=lfs diff=lfs merge=lfs -text
|
| 29 |
+
*.tflite filter=lfs diff=lfs merge=lfs -text
|
| 30 |
+
*.tgz filter=lfs diff=lfs merge=lfs -text
|
| 31 |
+
*.wasm filter=lfs diff=lfs merge=lfs -text
|
| 32 |
+
*.xz filter=lfs diff=lfs merge=lfs -text
|
| 33 |
+
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
+
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
+
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
base_model: unsloth/orpheus-3b-0.1-ft-unsloth-bnb-4bit
|
| 3 |
+
tags:
|
| 4 |
+
- text-generation-inference
|
| 5 |
+
- transformers
|
| 6 |
+
- unsloth
|
| 7 |
+
- llama
|
| 8 |
+
license: apache-2.0
|
| 9 |
+
language:
|
| 10 |
+
- en
|
| 11 |
+
---
|
| 12 |
+
|
| 13 |
+
# Uploaded finetuned model
|
| 14 |
+
|
| 15 |
+
- **Developed by:** hypaai
|
| 16 |
+
- **License:** apache-2.0
|
| 17 |
+
- **Finetuned from model :** unsloth/orpheus-3b-0.1-ft-unsloth-bnb-4bit
|
| 18 |
+
|
| 19 |
+
This llama model was trained 2x faster with [Unsloth](https://github.com/unslothai/unsloth) and Huggingface's TRL library.
|
| 20 |
+
|
| 21 |
+
[<img src="https://raw.githubusercontent.com/unslothai/unsloth/main/images/unsloth%20made%20with%20love.png" width="200"/>](https://github.com/unslothai/unsloth)
|
chat_template.jinja
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{{- bos_token }}
|
| 2 |
+
{%- if custom_tools is defined %}
|
| 3 |
+
{%- set tools = custom_tools %}
|
| 4 |
+
{%- endif %}
|
| 5 |
+
{%- if not tools_in_user_message is defined %}
|
| 6 |
+
{%- set tools_in_user_message = true %}
|
| 7 |
+
{%- endif %}
|
| 8 |
+
{%- if not date_string is defined %}
|
| 9 |
+
{%- if strftime_now is defined %}
|
| 10 |
+
{%- set date_string = strftime_now("%d %b %Y") %}
|
| 11 |
+
{%- else %}
|
| 12 |
+
{%- set date_string = "26 Jul 2024" %}
|
| 13 |
+
{%- endif %}
|
| 14 |
+
{%- endif %}
|
| 15 |
+
{%- if not tools is defined %}
|
| 16 |
+
{%- set tools = none %}
|
| 17 |
+
{%- endif %}
|
| 18 |
+
|
| 19 |
+
{#- This block extracts the system message, so we can slot it into the right place. #}
|
| 20 |
+
{%- if messages[0]['role'] == 'system' %}
|
| 21 |
+
{%- set system_message = messages[0]['content']|trim %}
|
| 22 |
+
{%- set messages = messages[1:] %}
|
| 23 |
+
{%- else %}
|
| 24 |
+
{%- set system_message = "" %}
|
| 25 |
+
{%- endif %}
|
| 26 |
+
|
| 27 |
+
{#- System message #}
|
| 28 |
+
{{- "<|start_header_id|>system<|end_header_id|>\n\n" }}
|
| 29 |
+
{%- if tools is not none %}
|
| 30 |
+
{{- "Environment: ipython\n" }}
|
| 31 |
+
{%- endif %}
|
| 32 |
+
{{- "Cutting Knowledge Date: December 2023\n" }}
|
| 33 |
+
{{- "Today Date: " + date_string + "\n\n" }}
|
| 34 |
+
{%- if tools is not none and not tools_in_user_message %}
|
| 35 |
+
{{- "You have access to the following functions. To call a function, please respond with JSON for a function call." }}
|
| 36 |
+
{{- 'Respond in the format {"name": function name, "parameters": dictionary of argument name and its value}.' }}
|
| 37 |
+
{{- "Do not use variables.\n\n" }}
|
| 38 |
+
{%- for t in tools %}
|
| 39 |
+
{{- t | tojson(indent=4) }}
|
| 40 |
+
{{- "\n\n" }}
|
| 41 |
+
{%- endfor %}
|
| 42 |
+
{%- endif %}
|
| 43 |
+
{{- system_message }}
|
| 44 |
+
{{- "<|eot_id|>" }}
|
| 45 |
+
|
| 46 |
+
{#- Custom tools are passed in a user message with some extra guidance #}
|
| 47 |
+
{%- if tools_in_user_message and not tools is none %}
|
| 48 |
+
{#- Extract the first user message so we can plug it in here #}
|
| 49 |
+
{%- if messages | length != 0 %}
|
| 50 |
+
{%- set first_user_message = messages[0]['content']|trim %}
|
| 51 |
+
{%- set messages = messages[1:] %}
|
| 52 |
+
{%- else %}
|
| 53 |
+
{{- raise_exception("Cannot put tools in the first user message when there's no first user message!") }}
|
| 54 |
+
{%- endif %}
|
| 55 |
+
{{- '<|start_header_id|>user<|end_header_id|>\n\n' -}}
|
| 56 |
+
{{- "Given the following functions, please respond with a JSON for a function call " }}
|
| 57 |
+
{{- "with its proper arguments that best answers the given prompt.\n\n" }}
|
| 58 |
+
{{- 'Respond in the format {"name": function name, "parameters": dictionary of argument name and its value}.' }}
|
| 59 |
+
{{- "Do not use variables.\n\n" }}
|
| 60 |
+
{%- for t in tools %}
|
| 61 |
+
{{- t | tojson(indent=4) }}
|
| 62 |
+
{{- "\n\n" }}
|
| 63 |
+
{%- endfor %}
|
| 64 |
+
{{- first_user_message + "<|eot_id|>"}}
|
| 65 |
+
{%- endif %}
|
| 66 |
+
|
| 67 |
+
{%- for message in messages %}
|
| 68 |
+
{%- if not (message.role == 'ipython' or message.role == 'tool' or 'tool_calls' in message) %}
|
| 69 |
+
{{- '<|start_header_id|>' + message['role'] + '<|end_header_id|>\n\n'+ message['content'] | trim + '<|eot_id|>' }}
|
| 70 |
+
{%- elif 'tool_calls' in message %}
|
| 71 |
+
{%- if not message.tool_calls|length == 1 %}
|
| 72 |
+
{{- raise_exception("This model only supports single tool-calls at once!") }}
|
| 73 |
+
{%- endif %}
|
| 74 |
+
{%- set tool_call = message.tool_calls[0].function %}
|
| 75 |
+
{{- '<|start_header_id|>assistant<|end_header_id|>\n\n' -}}
|
| 76 |
+
{{- '{"name": "' + tool_call.name + '", ' }}
|
| 77 |
+
{{- '"parameters": ' }}
|
| 78 |
+
{{- tool_call.arguments | tojson }}
|
| 79 |
+
{{- "}" }}
|
| 80 |
+
{{- "<|eot_id|>" }}
|
| 81 |
+
{%- elif message.role == "tool" or message.role == "ipython" %}
|
| 82 |
+
{{- "<|start_header_id|>ipython<|end_header_id|>\n\n" }}
|
| 83 |
+
{%- if message.content is mapping or message.content is iterable %}
|
| 84 |
+
{{- message.content | tojson }}
|
| 85 |
+
{%- else %}
|
| 86 |
+
{{- message.content }}
|
| 87 |
+
{%- endif %}
|
| 88 |
+
{{- "<|eot_id|>" }}
|
| 89 |
+
{%- endif %}
|
| 90 |
+
{%- endfor %}
|
| 91 |
+
{%- if add_generation_prompt %}
|
| 92 |
+
{{- '<|start_header_id|>assistant<|end_header_id|>\n\n' }}
|
| 93 |
+
{%- endif %}
|
config.json
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"LlamaForCausalLM"
|
| 4 |
+
],
|
| 5 |
+
"attention_bias": false,
|
| 6 |
+
"attention_dropout": 0.0,
|
| 7 |
+
"bos_token_id": 128000,
|
| 8 |
+
"torch_dtype": "bfloat16",
|
| 9 |
+
"eos_token_id": 128009,
|
| 10 |
+
"head_dim": 128,
|
| 11 |
+
"hidden_act": "silu",
|
| 12 |
+
"hidden_size": 3072,
|
| 13 |
+
"initializer_range": 0.02,
|
| 14 |
+
"intermediate_size": 8192,
|
| 15 |
+
"max_position_embeddings": 131072,
|
| 16 |
+
"mlp_bias": false,
|
| 17 |
+
"model_type": "llama",
|
| 18 |
+
"num_attention_heads": 24,
|
| 19 |
+
"num_hidden_layers": 28,
|
| 20 |
+
"num_key_value_heads": 8,
|
| 21 |
+
"pad_token_id": 128004,
|
| 22 |
+
"pretraining_tp": 1,
|
| 23 |
+
"rms_norm_eps": 1e-05,
|
| 24 |
+
"rope_parameters": {
|
| 25 |
+
"factor": 32.0,
|
| 26 |
+
"high_freq_factor": 4.0,
|
| 27 |
+
"low_freq_factor": 1.0,
|
| 28 |
+
"original_max_position_embeddings": 8192,
|
| 29 |
+
"rope_theta": 500000.0,
|
| 30 |
+
"rope_type": "llama3"
|
| 31 |
+
},
|
| 32 |
+
"tie_word_embeddings": true,
|
| 33 |
+
"unsloth_fixed": true,
|
| 34 |
+
"unsloth_version": "2026.7.3",
|
| 35 |
+
"use_cache": true,
|
| 36 |
+
"vocab_size": 156940
|
| 37 |
+
}
|
generation_config.json
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_from_model_config": true,
|
| 3 |
+
"bos_token_id": 128000,
|
| 4 |
+
"do_sample": true,
|
| 5 |
+
"eos_token_id": 128009,
|
| 6 |
+
"max_length": 131072,
|
| 7 |
+
"pad_token_id": 128004,
|
| 8 |
+
"temperature": 0.6,
|
| 9 |
+
"top_p": 0.9,
|
| 10 |
+
"transformers_version": "5.13.1"
|
| 11 |
+
}
|
handler.py
ADDED
|
@@ -0,0 +1,330 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""
|
| 2 |
+
HF Inference Endpoint handler — Hypa Orpheus TTS + Voice Cloning (merged 16-bit).
|
| 3 |
+
|
| 4 |
+
Task matrix (routed by `parameters`):
|
| 5 |
+
task="tts", mode="vanilla" : {speaker}: text -> speech
|
| 6 |
+
task="tts", mode="translate" : {speaker} - {Language}: text -> speech in Language
|
| 7 |
+
task="vc", mode="vanilla" : reference (text+audio) + target text -> speech in reference voice
|
| 8 |
+
task="vc", mode="translate" : + language tag on target text -> cross-lingual cloning
|
| 9 |
+
VC method="m1" (in-context) | method="m2" (continue-speaking)
|
| 10 |
+
|
| 11 |
+
Output parity with the legacy endpoint: `audio_b64` is base64 of the RAW
|
| 12 |
+
float32 little-endian mono PCM buffer at 24000 Hz (NO WAV/RIFF container),
|
| 13 |
+
so existing products decode with: np.frombuffer(base64.b64decode(s), dtype=np.int16)
|
| 14 |
+
[If the legacy endpoint used int16, change RAW_DTYPE to np.int16 below.]
|
| 15 |
+
|
| 16 |
+
Prompts are byte-identical to Step-III training (_encode_text / build_tts /
|
| 17 |
+
build_vc_both), reference codes are frame-deduped, and prompts reach vLLM as
|
| 18 |
+
token ids (never a decoded string).
|
| 19 |
+
"""
|
| 20 |
+
|
| 21 |
+
import io
|
| 22 |
+
import os
|
| 23 |
+
import base64
|
| 24 |
+
import tempfile
|
| 25 |
+
import traceback
|
| 26 |
+
|
| 27 |
+
import numpy as np
|
| 28 |
+
import torch
|
| 29 |
+
import soundfile as sf
|
| 30 |
+
import librosa
|
| 31 |
+
|
| 32 |
+
from transformers import AutoTokenizer
|
| 33 |
+
from snac import SNAC
|
| 34 |
+
from vllm import LLM, SamplingParams
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
class EndpointHandler:
|
| 38 |
+
# ---- Orpheus special tokens (fixed by the model) ----
|
| 39 |
+
TOKENISER_LEN = 128256
|
| 40 |
+
START_OF_TEXT = 128000
|
| 41 |
+
END_OF_TEXT = 128009
|
| 42 |
+
START_OF_SPEECH = TOKENISER_LEN + 1 # 128257
|
| 43 |
+
END_OF_SPEECH = TOKENISER_LEN + 2 # 128258
|
| 44 |
+
START_OF_HUMAN = TOKENISER_LEN + 3 # 128259
|
| 45 |
+
END_OF_HUMAN = TOKENISER_LEN + 4 # 128260
|
| 46 |
+
START_OF_AI = TOKENISER_LEN + 5 # 128261
|
| 47 |
+
END_OF_AI = TOKENISER_LEN + 6 # 128262
|
| 48 |
+
AUDIO_OFFSET = 128266
|
| 49 |
+
|
| 50 |
+
# NOTE: fine-tune data capped at 2048 tokens; 4096 kept so M1-VC prompts
|
| 51 |
+
# (ref codes + two texts, often 1000-2000 tokens) retain a generation
|
| 52 |
+
# budget. Base Llama-3 RoPE supports these positions natively; expect the
|
| 53 |
+
# best quality when prompt+generation stays near the trained ~2048.
|
| 54 |
+
MAX_MODEL_LEN = 4096
|
| 55 |
+
MAX_REF_SECONDS = 30
|
| 56 |
+
SNAC_SR = 24000
|
| 57 |
+
RAW_DTYPE = np.int16 # legacy raw-PCM dtype (see docstring)
|
| 58 |
+
|
| 59 |
+
LANG_DISPLAY = {
|
| 60 |
+
"en": "English", "es": "Spanish", "fr": "French", "ha": "Hausa",
|
| 61 |
+
"yo": "Yoruba", "sw": "Swahili", "ar": "Arabic", "pt": "Portuguese",
|
| 62 |
+
"ann": "Annang", "ebi": "Ebira", "efi": "Efik", "ego": "Eggon",
|
| 63 |
+
"urh": "Urhobo", "ibb": "Ibibio", "idm": "Idoma", "igl": "Igala",
|
| 64 |
+
"ig": "Igbo", "nup": "Nupe", "tiv": "Tiv", "pg": "Pidgin",
|
| 65 |
+
}
|
| 66 |
+
|
| 67 |
+
# ------------------------------------------------------------------ init
|
| 68 |
+
def __init__(self, path=""):
|
| 69 |
+
self.device = "cuda" if torch.cuda.is_available() else "cpu"
|
| 70 |
+
# SNAC first (tiny, ~80 MB) so it never contends with vLLM's reservation.
|
| 71 |
+
self.snac = SNAC.from_pretrained("hubertsiuzdak/snac_24khz").to(self.device).eval()
|
| 72 |
+
self.model = LLM(
|
| 73 |
+
path,
|
| 74 |
+
max_model_len=self.MAX_MODEL_LEN,
|
| 75 |
+
gpu_memory_utilization=0.75,
|
| 76 |
+
)
|
| 77 |
+
self.tokenizer = AutoTokenizer.from_pretrained(path)
|
| 78 |
+
|
| 79 |
+
# ------------------------------------------------------- text encoding
|
| 80 |
+
def _lang_display(self, x):
|
| 81 |
+
if x is None:
|
| 82 |
+
return None
|
| 83 |
+
k = str(x).strip().lower()
|
| 84 |
+
return self.LANG_DISPLAY.get(k, k.capitalize() if k else None)
|
| 85 |
+
|
| 86 |
+
def _encode_text(self, text, speaker=None, lang_tag=None, add_bos=True):
|
| 87 |
+
text = "" if text is None else str(text).strip()
|
| 88 |
+
spk = speaker if (speaker and str(speaker).strip().lower() not in ("", "random", "none")) else None
|
| 89 |
+
if spk and lang_tag:
|
| 90 |
+
prompt = f"{spk} - {lang_tag}: {text}"
|
| 91 |
+
elif spk:
|
| 92 |
+
prompt = f"{spk}: {text}"
|
| 93 |
+
elif lang_tag:
|
| 94 |
+
prompt = f"{lang_tag}: {text}"
|
| 95 |
+
else:
|
| 96 |
+
prompt = text
|
| 97 |
+
ids = self.tokenizer.encode(prompt, add_special_tokens=add_bos)
|
| 98 |
+
ids.append(self.END_OF_TEXT)
|
| 99 |
+
return ids
|
| 100 |
+
|
| 101 |
+
# ------------------------------------------------------ audio encoding
|
| 102 |
+
def _b64_to_wave(self, b64_str):
|
| 103 |
+
raw = base64.b64decode(b64_str)
|
| 104 |
+
if not raw:
|
| 105 |
+
raise ValueError("reference_audio is empty.")
|
| 106 |
+
try:
|
| 107 |
+
arr, sr = sf.read(io.BytesIO(raw), dtype="float32")
|
| 108 |
+
except Exception:
|
| 109 |
+
# temp-file fallback: librosa/audioread handles containers
|
| 110 |
+
# libsndfile can't open, but needs a real file path for some codecs.
|
| 111 |
+
tmp = None
|
| 112 |
+
try:
|
| 113 |
+
with tempfile.NamedTemporaryFile(delete=False, suffix=".audio") as f:
|
| 114 |
+
f.write(raw)
|
| 115 |
+
tmp = f.name
|
| 116 |
+
arr, sr = librosa.load(tmp, sr=None, mono=False)
|
| 117 |
+
arr = np.asarray(arr, dtype=np.float32)
|
| 118 |
+
if arr.ndim > 1:
|
| 119 |
+
arr = arr.T # librosa returns (ch, n)
|
| 120 |
+
finally:
|
| 121 |
+
if tmp and os.path.exists(tmp):
|
| 122 |
+
os.remove(tmp)
|
| 123 |
+
if arr.ndim > 1:
|
| 124 |
+
arr = arr.mean(axis=1)
|
| 125 |
+
if arr.size == 0 or not np.isfinite(arr).all():
|
| 126 |
+
raise ValueError("Reference audio is empty or contains invalid samples.")
|
| 127 |
+
if sr != self.SNAC_SR:
|
| 128 |
+
arr = librosa.resample(arr.astype(np.float32), orig_sr=sr, target_sr=self.SNAC_SR)
|
| 129 |
+
dur = len(arr) / self.SNAC_SR
|
| 130 |
+
if dur > self.MAX_REF_SECONDS:
|
| 131 |
+
raise ValueError(f"Reference audio is {dur:.1f}s; max is {self.MAX_REF_SECONDS}s. "
|
| 132 |
+
f"Send a shorter clip.")
|
| 133 |
+
return arr.astype(np.float32)
|
| 134 |
+
|
| 135 |
+
@torch.inference_mode()
|
| 136 |
+
def _audio_to_codes(self, arr):
|
| 137 |
+
wav = torch.from_numpy(arr).to(self.device)[None, None]
|
| 138 |
+
codes = self.snac.encode(wav)
|
| 139 |
+
c0, c1, c2 = codes[0][0].tolist(), codes[1][0].tolist(), codes[2][0].tolist()
|
| 140 |
+
n = min(len(c0), len(c1) // 2, len(c2) // 4)
|
| 141 |
+
out = []
|
| 142 |
+
for i in range(n):
|
| 143 |
+
out += [
|
| 144 |
+
c0[i] + self.AUDIO_OFFSET,
|
| 145 |
+
c1[2 * i] + self.AUDIO_OFFSET + 4096,
|
| 146 |
+
c2[4 * i] + self.AUDIO_OFFSET + 2 * 4096,
|
| 147 |
+
c2[4 * i + 1] + self.AUDIO_OFFSET + 3 * 4096,
|
| 148 |
+
c1[2 * i + 1] + self.AUDIO_OFFSET + 4 * 4096,
|
| 149 |
+
c2[4 * i + 2] + self.AUDIO_OFFSET + 5 * 4096,
|
| 150 |
+
c2[4 * i + 3] + self.AUDIO_OFFSET + 6 * 4096,
|
| 151 |
+
]
|
| 152 |
+
return out
|
| 153 |
+
|
| 154 |
+
@staticmethod
|
| 155 |
+
def _dedup_frames(codes):
|
| 156 |
+
if not codes:
|
| 157 |
+
return codes
|
| 158 |
+
codes = codes[: (len(codes) // 7) * 7]
|
| 159 |
+
if len(codes) < 7:
|
| 160 |
+
return codes
|
| 161 |
+
result = codes[:7]
|
| 162 |
+
for i in range(7, len(codes), 7):
|
| 163 |
+
if codes[i] != result[-7]:
|
| 164 |
+
result.extend(codes[i:i + 7])
|
| 165 |
+
return result
|
| 166 |
+
|
| 167 |
+
# ------------------------------------------------------ prompt builders
|
| 168 |
+
def build_tts_prompt(self, text, speaker, mode, language):
|
| 169 |
+
lang_tag = self._lang_display(language) if mode == "translate" else None
|
| 170 |
+
tt = self._encode_text(text, speaker, lang_tag, add_bos=True)
|
| 171 |
+
return [self.START_OF_HUMAN] + tt + [self.END_OF_HUMAN,
|
| 172 |
+
self.START_OF_AI, self.START_OF_SPEECH]
|
| 173 |
+
|
| 174 |
+
def build_vc_prompt(self, ref_text, ref_codes, target_text, mode, language, method):
|
| 175 |
+
tag2 = self._lang_display(language) if mode == "translate" else None
|
| 176 |
+
tt1 = self._encode_text(ref_text, None, None, add_bos=True)
|
| 177 |
+
tt2 = self._encode_text(target_text, None, tag2, add_bos=False)
|
| 178 |
+
if method == "m1":
|
| 179 |
+
return ([self.START_OF_HUMAN] + tt1 + [self.END_OF_HUMAN,
|
| 180 |
+
self.START_OF_AI, self.START_OF_SPEECH] + ref_codes +
|
| 181 |
+
[self.END_OF_SPEECH, self.END_OF_AI,
|
| 182 |
+
self.START_OF_HUMAN] + tt2 + [self.END_OF_HUMAN,
|
| 183 |
+
self.START_OF_AI, self.START_OF_SPEECH])
|
| 184 |
+
return ([self.START_OF_HUMAN] + tt1 + tt2 + [self.END_OF_HUMAN,
|
| 185 |
+
self.START_OF_AI, self.START_OF_SPEECH] + ref_codes)
|
| 186 |
+
|
| 187 |
+
# --------------------------------------------------------- generation
|
| 188 |
+
def _generate(self, prompt_ids, params):
|
| 189 |
+
sampling = SamplingParams(
|
| 190 |
+
temperature = params["temperature"],
|
| 191 |
+
top_p = params["top_p"],
|
| 192 |
+
top_k = params["top_k"],
|
| 193 |
+
max_tokens = params["max_new_tokens"],
|
| 194 |
+
repetition_penalty = params["repetition_penalty"],
|
| 195 |
+
stop_token_ids = [self.END_OF_SPEECH, self.END_OF_AI],
|
| 196 |
+
detokenize = False,
|
| 197 |
+
)
|
| 198 |
+
outputs = self.model.generate({"prompt_token_ids": prompt_ids}, sampling)
|
| 199 |
+
return list(outputs[0].outputs[0].token_ids)
|
| 200 |
+
|
| 201 |
+
# ----------------------------------------------------------- decoding
|
| 202 |
+
@torch.inference_mode()
|
| 203 |
+
def _codes_to_wave(self, gen_ids):
|
| 204 |
+
"""Frame-validating SNAC decode: accepts only well-formed 7-token frames
|
| 205 |
+
(token k in slot-k range), resyncs on malformed spans."""
|
| 206 |
+
frames, i, n, resyncs = [], 0, len(gen_ids), 0
|
| 207 |
+
while i <= n - 7:
|
| 208 |
+
vals, ok = [], True
|
| 209 |
+
for k in range(7):
|
| 210 |
+
lo = self.AUDIO_OFFSET + k * 4096
|
| 211 |
+
t = gen_ids[i + k]
|
| 212 |
+
if not (lo <= t < lo + 4096):
|
| 213 |
+
ok = False
|
| 214 |
+
break
|
| 215 |
+
vals.append(t - lo)
|
| 216 |
+
if ok:
|
| 217 |
+
frames.append(vals)
|
| 218 |
+
i += 7
|
| 219 |
+
else:
|
| 220 |
+
i += 1
|
| 221 |
+
resyncs += 1
|
| 222 |
+
self._last_resyncs = resyncs
|
| 223 |
+
if not frames:
|
| 224 |
+
return None, 0
|
| 225 |
+
l1 = [f[0] for f in frames]
|
| 226 |
+
l2, l3 = [], []
|
| 227 |
+
for f in frames:
|
| 228 |
+
l2.append(f[1]); l3.append(f[2]); l3.append(f[3])
|
| 229 |
+
l2.append(f[4]); l3.append(f[5]); l3.append(f[6])
|
| 230 |
+
tensors = [
|
| 231 |
+
torch.tensor(l1)[None].to(self.device),
|
| 232 |
+
torch.tensor(l2)[None].to(self.device),
|
| 233 |
+
torch.tensor(l3)[None].to(self.device),
|
| 234 |
+
]
|
| 235 |
+
wav = self.snac.decode(tensors).squeeze().detach().cpu().numpy()
|
| 236 |
+
return wav, len(frames)
|
| 237 |
+
|
| 238 |
+
def _wave_to_b64_raw(self, wav):
|
| 239 |
+
"""Legacy parity: base64 of raw little-endian PCM buffer, no container."""
|
| 240 |
+
return base64.b64encode(
|
| 241 |
+
np.ascontiguousarray(wav.astype(self.RAW_DTYPE)).tobytes()
|
| 242 |
+
).decode("utf-8")
|
| 243 |
+
|
| 244 |
+
# -------------------------------------------------------------- entry
|
| 245 |
+
def __call__(self, data):
|
| 246 |
+
try:
|
| 247 |
+
target_text = data.get("inputs")
|
| 248 |
+
if not target_text:
|
| 249 |
+
return {"error": "Missing 'inputs' (target text)."}
|
| 250 |
+
|
| 251 |
+
p = data.get("parameters", {}) or {}
|
| 252 |
+
task = str(p.get("task", "tts")).lower()
|
| 253 |
+
mode = str(p.get("mode", "vanilla")).lower()
|
| 254 |
+
method = str(p.get("method", "m2")).lower()
|
| 255 |
+
if mode in ("translation", "trans"):
|
| 256 |
+
mode = "translate"
|
| 257 |
+
|
| 258 |
+
if task not in ("tts", "vc"):
|
| 259 |
+
return {"error": "parameters.task must be 'tts' or 'vc'."}
|
| 260 |
+
if mode not in ("vanilla", "translate"):
|
| 261 |
+
return {"error": "parameters.mode must be 'vanilla' or 'translate'."}
|
| 262 |
+
if mode == "translate" and not p.get("language"):
|
| 263 |
+
return {"error": "parameters.language is required for translate mode."}
|
| 264 |
+
|
| 265 |
+
gen_params = {
|
| 266 |
+
"temperature": float(p.get("temperature", 0.6)),
|
| 267 |
+
"top_p": float(p.get("top_p", 0.95)),
|
| 268 |
+
"top_k": int(p.get("top_k", 50)),
|
| 269 |
+
"max_new_tokens": int(p.get("max_new_tokens", 1200)),
|
| 270 |
+
"repetition_penalty": float(p.get("repetition_penalty", 1.1)),
|
| 271 |
+
}
|
| 272 |
+
if not 0 < gen_params["top_p"] <= 1:
|
| 273 |
+
return {"error": "top_p must be within (0, 1]."}
|
| 274 |
+
if not (gen_params["top_k"] == -1 or gen_params["top_k"] > 0):
|
| 275 |
+
return {"error": "top_k must be -1 (disabled) or a positive integer."}
|
| 276 |
+
if not 0 < gen_params["repetition_penalty"] <= 2:
|
| 277 |
+
return {"error": "repetition_penalty must be within (0, 2]."}
|
| 278 |
+
if gen_params["max_new_tokens"] <= 0:
|
| 279 |
+
return {"error": "max_new_tokens must be positive."}
|
| 280 |
+
|
| 281 |
+
if task == "vc":
|
| 282 |
+
ref_text = p.get("reference_text")
|
| 283 |
+
ref_audio = p.get("reference_audio")
|
| 284 |
+
if not ref_text or not ref_audio:
|
| 285 |
+
return {"error": "VC requires parameters.reference_text and "
|
| 286 |
+
"parameters.reference_audio (base64)."}
|
| 287 |
+
if method not in ("m1", "m2"):
|
| 288 |
+
return {"error": "parameters.method must be 'm1' or 'm2'."}
|
| 289 |
+
ref_wave = self._b64_to_wave(ref_audio)
|
| 290 |
+
ref_codes = self._dedup_frames(self._audio_to_codes(ref_wave))
|
| 291 |
+
if not ref_codes:
|
| 292 |
+
return {"error": "Reference audio produced no SNAC codes."}
|
| 293 |
+
prompt_ids = self.build_vc_prompt(
|
| 294 |
+
ref_text, ref_codes, target_text, mode, p.get("language"), method)
|
| 295 |
+
else:
|
| 296 |
+
prompt_ids = self.build_tts_prompt(
|
| 297 |
+
target_text, p.get("voice") or p.get("speaker"),
|
| 298 |
+
mode, p.get("language"))
|
| 299 |
+
|
| 300 |
+
budget = self.MAX_MODEL_LEN - gen_params["max_new_tokens"]
|
| 301 |
+
if len(prompt_ids) > budget:
|
| 302 |
+
return {"error": f"Prompt is {len(prompt_ids)} tokens; exceeds budget "
|
| 303 |
+
f"{budget} (max_model_len - max_new_tokens). "
|
| 304 |
+
f"Shorten the reference clip or text."}
|
| 305 |
+
|
| 306 |
+
gen_ids = self._generate(prompt_ids, gen_params)
|
| 307 |
+
wav, n_frames = self._codes_to_wave(gen_ids)
|
| 308 |
+
if wav is None:
|
| 309 |
+
return {"error": "Model generated no audio tokens.",
|
| 310 |
+
"input_tokens": len(prompt_ids),
|
| 311 |
+
"generated_tokens": len(gen_ids)}
|
| 312 |
+
|
| 313 |
+
return {
|
| 314 |
+
"audio_b64": self._wave_to_b64_raw(wav), # RAW float32 PCM (legacy parity)
|
| 315 |
+
"audio_dtype": np.dtype(self.RAW_DTYPE).name,
|
| 316 |
+
"sample_rate": self.SNAC_SR,
|
| 317 |
+
"duration_seconds": round(len(wav) / self.SNAC_SR, 3),
|
| 318 |
+
"audio_frames": n_frames,
|
| 319 |
+
"input_tokens": len(prompt_ids),
|
| 320 |
+
"generated_tokens": len(gen_ids),
|
| 321 |
+
"task": task, "mode": mode,
|
| 322 |
+
"method": method if task == "vc" else None,
|
| 323 |
+
"decode_resyncs": getattr(self, "_last_resyncs", 0),
|
| 324 |
+
}
|
| 325 |
+
|
| 326 |
+
except ValueError as e:
|
| 327 |
+
return {"error": str(e)}
|
| 328 |
+
except Exception as e:
|
| 329 |
+
traceback.print_exc()
|
| 330 |
+
return {"error": str(e)}
|
model-00001-of-00002.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1f6b83b76b0d948855df921a51f919d29d732f13132ba9d394c2137ebf0d3997
|
| 3 |
+
size 4991037968
|
model-00002-of-00002.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:db2e111d97dbf419e6eb06b5d867ba01f46c62bcac43be8f23f01fa2e4e9c62b
|
| 3 |
+
size 1610725592
|
model.safetensors.index.json
ADDED
|
@@ -0,0 +1,261 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"metadata": {
|
| 3 |
+
"total_size": 6601734144
|
| 4 |
+
},
|
| 5 |
+
"weight_map": {
|
| 6 |
+
"model.embed_tokens.weight": "model-00001-of-00002.safetensors",
|
| 7 |
+
"model.layers.0.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 8 |
+
"model.layers.0.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
|
| 9 |
+
"model.layers.0.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
|
| 10 |
+
"model.layers.0.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
|
| 11 |
+
"model.layers.0.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 12 |
+
"model.layers.0.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
|
| 13 |
+
"model.layers.0.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
|
| 14 |
+
"model.layers.0.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
|
| 15 |
+
"model.layers.0.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
|
| 16 |
+
"model.layers.1.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 17 |
+
"model.layers.1.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
|
| 18 |
+
"model.layers.1.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
|
| 19 |
+
"model.layers.1.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
|
| 20 |
+
"model.layers.1.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 21 |
+
"model.layers.1.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
|
| 22 |
+
"model.layers.1.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
|
| 23 |
+
"model.layers.1.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
|
| 24 |
+
"model.layers.1.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
|
| 25 |
+
"model.layers.10.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 26 |
+
"model.layers.10.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
|
| 27 |
+
"model.layers.10.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
|
| 28 |
+
"model.layers.10.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
|
| 29 |
+
"model.layers.10.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 30 |
+
"model.layers.10.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
|
| 31 |
+
"model.layers.10.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
|
| 32 |
+
"model.layers.10.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
|
| 33 |
+
"model.layers.10.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
|
| 34 |
+
"model.layers.11.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 35 |
+
"model.layers.11.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
|
| 36 |
+
"model.layers.11.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
|
| 37 |
+
"model.layers.11.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
|
| 38 |
+
"model.layers.11.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 39 |
+
"model.layers.11.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
|
| 40 |
+
"model.layers.11.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
|
| 41 |
+
"model.layers.11.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
|
| 42 |
+
"model.layers.11.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
|
| 43 |
+
"model.layers.12.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 44 |
+
"model.layers.12.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
|
| 45 |
+
"model.layers.12.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
|
| 46 |
+
"model.layers.12.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
|
| 47 |
+
"model.layers.12.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 48 |
+
"model.layers.12.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
|
| 49 |
+
"model.layers.12.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
|
| 50 |
+
"model.layers.12.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
|
| 51 |
+
"model.layers.12.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
|
| 52 |
+
"model.layers.13.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 53 |
+
"model.layers.13.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
|
| 54 |
+
"model.layers.13.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
|
| 55 |
+
"model.layers.13.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
|
| 56 |
+
"model.layers.13.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 57 |
+
"model.layers.13.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
|
| 58 |
+
"model.layers.13.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
|
| 59 |
+
"model.layers.13.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
|
| 60 |
+
"model.layers.13.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
|
| 61 |
+
"model.layers.14.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 62 |
+
"model.layers.14.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
|
| 63 |
+
"model.layers.14.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
|
| 64 |
+
"model.layers.14.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
|
| 65 |
+
"model.layers.14.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 66 |
+
"model.layers.14.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
|
| 67 |
+
"model.layers.14.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
|
| 68 |
+
"model.layers.14.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
|
| 69 |
+
"model.layers.14.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
|
| 70 |
+
"model.layers.15.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 71 |
+
"model.layers.15.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
|
| 72 |
+
"model.layers.15.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
|
| 73 |
+
"model.layers.15.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
|
| 74 |
+
"model.layers.15.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 75 |
+
"model.layers.15.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
|
| 76 |
+
"model.layers.15.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
|
| 77 |
+
"model.layers.15.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
|
| 78 |
+
"model.layers.15.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
|
| 79 |
+
"model.layers.16.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 80 |
+
"model.layers.16.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
|
| 81 |
+
"model.layers.16.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
|
| 82 |
+
"model.layers.16.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
|
| 83 |
+
"model.layers.16.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 84 |
+
"model.layers.16.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
|
| 85 |
+
"model.layers.16.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
|
| 86 |
+
"model.layers.16.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
|
| 87 |
+
"model.layers.16.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
|
| 88 |
+
"model.layers.17.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 89 |
+
"model.layers.17.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
|
| 90 |
+
"model.layers.17.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
|
| 91 |
+
"model.layers.17.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
|
| 92 |
+
"model.layers.17.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 93 |
+
"model.layers.17.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
|
| 94 |
+
"model.layers.17.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
|
| 95 |
+
"model.layers.17.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
|
| 96 |
+
"model.layers.17.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
|
| 97 |
+
"model.layers.18.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 98 |
+
"model.layers.18.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
|
| 99 |
+
"model.layers.18.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
|
| 100 |
+
"model.layers.18.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
|
| 101 |
+
"model.layers.18.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 102 |
+
"model.layers.18.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
|
| 103 |
+
"model.layers.18.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
|
| 104 |
+
"model.layers.18.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
|
| 105 |
+
"model.layers.18.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
|
| 106 |
+
"model.layers.19.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 107 |
+
"model.layers.19.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
|
| 108 |
+
"model.layers.19.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
|
| 109 |
+
"model.layers.19.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
|
| 110 |
+
"model.layers.19.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 111 |
+
"model.layers.19.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
|
| 112 |
+
"model.layers.19.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
|
| 113 |
+
"model.layers.19.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
|
| 114 |
+
"model.layers.19.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
|
| 115 |
+
"model.layers.2.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 116 |
+
"model.layers.2.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
|
| 117 |
+
"model.layers.2.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
|
| 118 |
+
"model.layers.2.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
|
| 119 |
+
"model.layers.2.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 120 |
+
"model.layers.2.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
|
| 121 |
+
"model.layers.2.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
|
| 122 |
+
"model.layers.2.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
|
| 123 |
+
"model.layers.2.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
|
| 124 |
+
"model.layers.20.input_layernorm.weight": "model-00002-of-00002.safetensors",
|
| 125 |
+
"model.layers.20.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
|
| 126 |
+
"model.layers.20.mlp.gate_proj.weight": "model-00002-of-00002.safetensors",
|
| 127 |
+
"model.layers.20.mlp.up_proj.weight": "model-00002-of-00002.safetensors",
|
| 128 |
+
"model.layers.20.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
|
| 129 |
+
"model.layers.20.self_attn.k_proj.weight": "model-00002-of-00002.safetensors",
|
| 130 |
+
"model.layers.20.self_attn.o_proj.weight": "model-00002-of-00002.safetensors",
|
| 131 |
+
"model.layers.20.self_attn.q_proj.weight": "model-00002-of-00002.safetensors",
|
| 132 |
+
"model.layers.20.self_attn.v_proj.weight": "model-00002-of-00002.safetensors",
|
| 133 |
+
"model.layers.21.input_layernorm.weight": "model-00002-of-00002.safetensors",
|
| 134 |
+
"model.layers.21.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
|
| 135 |
+
"model.layers.21.mlp.gate_proj.weight": "model-00002-of-00002.safetensors",
|
| 136 |
+
"model.layers.21.mlp.up_proj.weight": "model-00002-of-00002.safetensors",
|
| 137 |
+
"model.layers.21.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
|
| 138 |
+
"model.layers.21.self_attn.k_proj.weight": "model-00002-of-00002.safetensors",
|
| 139 |
+
"model.layers.21.self_attn.o_proj.weight": "model-00002-of-00002.safetensors",
|
| 140 |
+
"model.layers.21.self_attn.q_proj.weight": "model-00002-of-00002.safetensors",
|
| 141 |
+
"model.layers.21.self_attn.v_proj.weight": "model-00002-of-00002.safetensors",
|
| 142 |
+
"model.layers.22.input_layernorm.weight": "model-00002-of-00002.safetensors",
|
| 143 |
+
"model.layers.22.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
|
| 144 |
+
"model.layers.22.mlp.gate_proj.weight": "model-00002-of-00002.safetensors",
|
| 145 |
+
"model.layers.22.mlp.up_proj.weight": "model-00002-of-00002.safetensors",
|
| 146 |
+
"model.layers.22.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
|
| 147 |
+
"model.layers.22.self_attn.k_proj.weight": "model-00002-of-00002.safetensors",
|
| 148 |
+
"model.layers.22.self_attn.o_proj.weight": "model-00002-of-00002.safetensors",
|
| 149 |
+
"model.layers.22.self_attn.q_proj.weight": "model-00002-of-00002.safetensors",
|
| 150 |
+
"model.layers.22.self_attn.v_proj.weight": "model-00002-of-00002.safetensors",
|
| 151 |
+
"model.layers.23.input_layernorm.weight": "model-00002-of-00002.safetensors",
|
| 152 |
+
"model.layers.23.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
|
| 153 |
+
"model.layers.23.mlp.gate_proj.weight": "model-00002-of-00002.safetensors",
|
| 154 |
+
"model.layers.23.mlp.up_proj.weight": "model-00002-of-00002.safetensors",
|
| 155 |
+
"model.layers.23.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
|
| 156 |
+
"model.layers.23.self_attn.k_proj.weight": "model-00002-of-00002.safetensors",
|
| 157 |
+
"model.layers.23.self_attn.o_proj.weight": "model-00002-of-00002.safetensors",
|
| 158 |
+
"model.layers.23.self_attn.q_proj.weight": "model-00002-of-00002.safetensors",
|
| 159 |
+
"model.layers.23.self_attn.v_proj.weight": "model-00002-of-00002.safetensors",
|
| 160 |
+
"model.layers.24.input_layernorm.weight": "model-00002-of-00002.safetensors",
|
| 161 |
+
"model.layers.24.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
|
| 162 |
+
"model.layers.24.mlp.gate_proj.weight": "model-00002-of-00002.safetensors",
|
| 163 |
+
"model.layers.24.mlp.up_proj.weight": "model-00002-of-00002.safetensors",
|
| 164 |
+
"model.layers.24.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
|
| 165 |
+
"model.layers.24.self_attn.k_proj.weight": "model-00002-of-00002.safetensors",
|
| 166 |
+
"model.layers.24.self_attn.o_proj.weight": "model-00002-of-00002.safetensors",
|
| 167 |
+
"model.layers.24.self_attn.q_proj.weight": "model-00002-of-00002.safetensors",
|
| 168 |
+
"model.layers.24.self_attn.v_proj.weight": "model-00002-of-00002.safetensors",
|
| 169 |
+
"model.layers.25.input_layernorm.weight": "model-00002-of-00002.safetensors",
|
| 170 |
+
"model.layers.25.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
|
| 171 |
+
"model.layers.25.mlp.gate_proj.weight": "model-00002-of-00002.safetensors",
|
| 172 |
+
"model.layers.25.mlp.up_proj.weight": "model-00002-of-00002.safetensors",
|
| 173 |
+
"model.layers.25.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
|
| 174 |
+
"model.layers.25.self_attn.k_proj.weight": "model-00002-of-00002.safetensors",
|
| 175 |
+
"model.layers.25.self_attn.o_proj.weight": "model-00002-of-00002.safetensors",
|
| 176 |
+
"model.layers.25.self_attn.q_proj.weight": "model-00002-of-00002.safetensors",
|
| 177 |
+
"model.layers.25.self_attn.v_proj.weight": "model-00002-of-00002.safetensors",
|
| 178 |
+
"model.layers.26.input_layernorm.weight": "model-00002-of-00002.safetensors",
|
| 179 |
+
"model.layers.26.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
|
| 180 |
+
"model.layers.26.mlp.gate_proj.weight": "model-00002-of-00002.safetensors",
|
| 181 |
+
"model.layers.26.mlp.up_proj.weight": "model-00002-of-00002.safetensors",
|
| 182 |
+
"model.layers.26.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
|
| 183 |
+
"model.layers.26.self_attn.k_proj.weight": "model-00002-of-00002.safetensors",
|
| 184 |
+
"model.layers.26.self_attn.o_proj.weight": "model-00002-of-00002.safetensors",
|
| 185 |
+
"model.layers.26.self_attn.q_proj.weight": "model-00002-of-00002.safetensors",
|
| 186 |
+
"model.layers.26.self_attn.v_proj.weight": "model-00002-of-00002.safetensors",
|
| 187 |
+
"model.layers.27.input_layernorm.weight": "model-00002-of-00002.safetensors",
|
| 188 |
+
"model.layers.27.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
|
| 189 |
+
"model.layers.27.mlp.gate_proj.weight": "model-00002-of-00002.safetensors",
|
| 190 |
+
"model.layers.27.mlp.up_proj.weight": "model-00002-of-00002.safetensors",
|
| 191 |
+
"model.layers.27.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
|
| 192 |
+
"model.layers.27.self_attn.k_proj.weight": "model-00002-of-00002.safetensors",
|
| 193 |
+
"model.layers.27.self_attn.o_proj.weight": "model-00002-of-00002.safetensors",
|
| 194 |
+
"model.layers.27.self_attn.q_proj.weight": "model-00002-of-00002.safetensors",
|
| 195 |
+
"model.layers.27.self_attn.v_proj.weight": "model-00002-of-00002.safetensors",
|
| 196 |
+
"model.layers.3.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 197 |
+
"model.layers.3.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
|
| 198 |
+
"model.layers.3.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
|
| 199 |
+
"model.layers.3.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
|
| 200 |
+
"model.layers.3.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 201 |
+
"model.layers.3.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
|
| 202 |
+
"model.layers.3.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
|
| 203 |
+
"model.layers.3.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
|
| 204 |
+
"model.layers.3.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
|
| 205 |
+
"model.layers.4.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 206 |
+
"model.layers.4.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
|
| 207 |
+
"model.layers.4.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
|
| 208 |
+
"model.layers.4.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
|
| 209 |
+
"model.layers.4.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 210 |
+
"model.layers.4.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
|
| 211 |
+
"model.layers.4.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
|
| 212 |
+
"model.layers.4.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
|
| 213 |
+
"model.layers.4.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
|
| 214 |
+
"model.layers.5.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 215 |
+
"model.layers.5.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
|
| 216 |
+
"model.layers.5.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
|
| 217 |
+
"model.layers.5.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
|
| 218 |
+
"model.layers.5.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 219 |
+
"model.layers.5.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
|
| 220 |
+
"model.layers.5.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
|
| 221 |
+
"model.layers.5.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
|
| 222 |
+
"model.layers.5.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
|
| 223 |
+
"model.layers.6.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 224 |
+
"model.layers.6.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
|
| 225 |
+
"model.layers.6.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
|
| 226 |
+
"model.layers.6.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
|
| 227 |
+
"model.layers.6.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 228 |
+
"model.layers.6.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
|
| 229 |
+
"model.layers.6.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
|
| 230 |
+
"model.layers.6.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
|
| 231 |
+
"model.layers.6.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
|
| 232 |
+
"model.layers.7.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 233 |
+
"model.layers.7.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
|
| 234 |
+
"model.layers.7.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
|
| 235 |
+
"model.layers.7.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
|
| 236 |
+
"model.layers.7.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 237 |
+
"model.layers.7.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
|
| 238 |
+
"model.layers.7.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
|
| 239 |
+
"model.layers.7.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
|
| 240 |
+
"model.layers.7.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
|
| 241 |
+
"model.layers.8.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 242 |
+
"model.layers.8.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
|
| 243 |
+
"model.layers.8.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
|
| 244 |
+
"model.layers.8.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
|
| 245 |
+
"model.layers.8.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 246 |
+
"model.layers.8.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
|
| 247 |
+
"model.layers.8.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
|
| 248 |
+
"model.layers.8.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
|
| 249 |
+
"model.layers.8.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
|
| 250 |
+
"model.layers.9.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 251 |
+
"model.layers.9.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
|
| 252 |
+
"model.layers.9.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
|
| 253 |
+
"model.layers.9.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
|
| 254 |
+
"model.layers.9.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 255 |
+
"model.layers.9.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
|
| 256 |
+
"model.layers.9.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
|
| 257 |
+
"model.layers.9.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
|
| 258 |
+
"model.layers.9.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
|
| 259 |
+
"model.norm.weight": "model-00002-of-00002.safetensors"
|
| 260 |
+
}
|
| 261 |
+
}
|
requirements.txt
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
--extra-index-url https://download.pytorch.org/whl/cu121
|
| 2 |
+
transformers==4.51.3
|
| 3 |
+
accelerate==1.6.0
|
| 4 |
+
|
| 5 |
+
vllm==0.8.5.post1
|
| 6 |
+
torch==2.6.0
|
| 7 |
+
torchaudio==2.6.0
|
| 8 |
+
torchvision==0.21.0
|
| 9 |
+
triton==3.2.0
|
| 10 |
+
xformers==0.0.29.post2
|
| 11 |
+
|
| 12 |
+
numpy==1.26.4
|
| 13 |
+
protobuf==4.25.3
|
| 14 |
+
snac==1.2.1
|
| 15 |
+
diffusers==0.30.3
|
| 16 |
+
|
| 17 |
+
starlette<1.0
|
| 18 |
+
librosa==0.10.2.post1
|
| 19 |
+
soundfile==0.12.1
|
tokenizer.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fc3fecb199b4170636dbfab986d25f628157268d37b861f9cadaca60b1353bce
|
| 3 |
+
size 22849547
|
tokenizer_config.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|