rtedwardchen commited on
Commit
188712f
·
verified ·
1 Parent(s): c84911e

Add matrix reconstruction model

Browse files
Files changed (12) hide show
  1. ATTRIBUTIONS.md +38 -0
  2. LICENSE +7 -0
  3. NOTICE +9 -0
  4. README.md +155 -0
  5. SHA256SUMS +11 -0
  6. UPSTREAM_LICENSE +202 -0
  7. config.json +34 -0
  8. model.safetensors +3 -0
  9. special_tokens_map.json +58 -0
  10. tokenizer.json +0 -0
  11. tokenizer_config.json +24 -0
  12. vocab.txt +0 -0
ATTRIBUTIONS.md ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Attributions
2
+
3
+ Aparecium's code and learned nonlinear projection are distributed under the [MIT License](LICENSE). The model artifact also contains the original MPNet input-vocabulary weights and tokenizer files, which retain their Apache-2.0 terms and applicable notices. The MIT license does not relicense those upstream components or source datasets.
4
+
5
+ The upstream terms are included in [UPSTREAM_LICENSE](UPSTREAM_LICENSE), with component notices in [NOTICE](NOTICE).
6
+
7
+ ## Encoder and vocabulary
8
+
9
+ | Component | Source | Upstream license |
10
+ | --- | --- | --- |
11
+ | Input encoder, tokenizer, and original vocabulary weights | [all-mpnet-base-v2, Sentence Transformers](https://huggingface.co/sentence-transformers/all-mpnet-base-v2) | Apache-2.0 |
12
+
13
+ The supported encoder and tokenizer revision is `e8c3b32edf5434bc2275fc9bab85f82640a19130`. Matrix reconstruction loads the included tokenizer and vocabulary. The full encoder is obtained separately when producing matrices or using text convenience methods.
14
+
15
+ The implementation uses [PyTorch](https://github.com/pytorch/pytorch), [Transformers](https://github.com/huggingface/transformers), [Hugging Face Hub](https://github.com/huggingface/huggingface_hub), [Safetensors](https://github.com/huggingface/safetensors), and [NumPy](https://github.com/numpy/numpy). The optional service uses [FastAPI](https://github.com/fastapi/fastapi), [Pydantic](https://github.com/pydantic/pydantic), and [Uvicorn](https://github.com/encode/uvicorn). Their copyright and license notices remain with their distributions.
16
+
17
+ ## Training sources
18
+
19
+ The general-English training collection contains 5,000 short texts from the sources below. Dataset-level license labels do not replace the terms or attribution attached to individual source documents.
20
+
21
+ | Collection | Training texts | Source and acknowledgment | Recorded license information |
22
+ | --- | ---: | --- | --- |
23
+ | C4, realnewslike | 978 | [Allen Institute for AI C4 distribution](https://huggingface.co/datasets/allenai/c4), derived from Common Crawl | ODC-By |
24
+ | Common Pile News | 499 | [Common Pile contributors](https://huggingface.co/datasets/common-pile/news_filtered) and original news authors | Document-level CC-BY filtering; retained documents record Attribution 4.0 |
25
+ | HuffPost News Category | 767 | [News Category Dataset by Rishabh Misra](https://rishabhmisra.github.io/publications/), via [heegyu/news-category-dataset](https://huggingface.co/datasets/heegyu/news-category-dataset) | CC-BY-4.0, as labeled by the collection |
26
+ | Wikinews | 270 | [Wikinews contributors](https://en.wikinews.org/), via [Izumi Lab's English collection](https://huggingface.co/datasets/izumi-lab/wikinews-en-20230728) | CC-BY-2.5 |
27
+ | Wikipedia sentences | 756 | [Wikipedia contributors](https://en.wikipedia.org/), via [Sentence Transformers' English collection](https://huggingface.co/datasets/sentence-transformers/wikipedia-en-sentences) | Wikipedia CC-BY-SA terms; the collection does not specify a version |
28
+ | FineWeb-Edu | 728 | [Hugging Face FineWeb-Edu](https://huggingface.co/datasets/HuggingFaceFW/fineweb-edu), derived from Common Crawl | ODC-By |
29
+ | Webis TL;DR | 1,002 | [Webis Group TL;DR collection](https://huggingface.co/datasets/webis/tldr-17) and original contributors | CC-BY-4.0 |
30
+ | **General-English total** | **5,000** | | |
31
+
32
+ Crypto training additionally uses 140 original public X posts across 133 event families. Those authors retain rights in their posts; public availability does not imply an open-content license. The source collections supply headlines, short summaries, sentences, and social commentary. Separate held-out diagnostic collections contain 500 general-English texts and 50 crypto posts.
33
+
34
+ The release distributes model parameters and tokenizer assets, not training or evaluation text. Original authors, corpus maintainers, and upstream notices remain the authorities for source content and its terms.
35
+
36
+ ## Evaluation sources
37
+
38
+ Source-fidelity measurements use held-out public crypto posts, grouped by historical event and distinct author. The reported scores assess preservation of supplied source claims, not their external truth. Public documentation includes aggregate measurements and short paraphrased error descriptions without redistributing the underlying posts.
LICENSE ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ Copyright (c) 2024-2025 SentiChain
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
+
5
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6
+
7
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
NOTICE ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ Aparecium includes the original input-vocabulary weights and tokenizer of
2
+ sentence-transformers/all-mpnet-base-v2 by Sentence Transformers.
3
+ These upstream components are distributed under the Apache License.
4
+ Source: https://huggingface.co/sentence-transformers/all-mpnet-base-v2
5
+ Revision: e8c3b32edf5434bc2275fc9bab85f82640a19130
6
+ The input-vocabulary weights are unchanged. The learned projection and
7
+ vocabulary bias are separate parameters developed by SentiChain.
8
+ The full encoder and training texts are not included.
9
+ See UPSTREAM_LICENSE and ATTRIBUTIONS.md for attribution and terms.
README.md ADDED
@@ -0,0 +1,155 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ license: other
5
+ license_name: mit-and-apache-2.0
6
+ license_link: https://huggingface.co/SentiChain/aparecium-matrix/blob/main/ATTRIBUTIONS.md
7
+ library_name: safetensors
8
+ base_model: sentence-transformers/all-mpnet-base-v2
9
+ tags:
10
+ - matrix
11
+ - embedding-inversion
12
+ - crypto
13
+ datasets:
14
+ - allenai/c4
15
+ - common-pile/news_filtered
16
+ - heegyu/news-category-dataset
17
+ - izumi-lab/wikinews-en-20230728
18
+ - sentence-transformers/wikipedia-en-sentences
19
+ - HuggingFaceFW/fineweb-edu
20
+ - webis/tldr-17
21
+ ---
22
+
23
+ # Aparecium Matrix
24
+
25
+ [Aparecium Matrix](https://huggingface.co/SentiChain/aparecium-matrix) reconstructs short English text from full token-state matrices produced by [`sentence-transformers/all-mpnet-base-v2`](https://huggingface.co/sentence-transformers/all-mpnet-base-v2). A learned nonlinear projection predicts a token from each interior state using the encoder's original frozen vocabulary weights.
26
+
27
+ **Outputs are approximate reconstructions.** They can omit or change numbers, dates, names, actions, conditions, and relationships. The model can preserve an event's broad meaning while introducing a material error. Reconstructions are not verified source text, news, financial forecasts, or evidence of trading profitability.
28
+
29
+ ## Loading
30
+
31
+ ```bash
32
+ pip install --pre aparecium
33
+ ```
34
+
35
+ ```python
36
+ import numpy as np
37
+ from aparecium import Aparecium
38
+
39
+ model = Aparecium(model_id="SentiChain/aparecium-matrix")
40
+ matrix = np.load("matrix.npy", allow_pickle=False)
41
+ result = model.invert_matrix(matrix)
42
+ print(result.text)
43
+ ```
44
+
45
+ This artifact uses the Aparecium Python loader. It is not a standalone Transformers `AutoModel` checkpoint or a text-prompt model. Matrix reconstruction loads the artifact's weights and tokenizer without loading the full encoder. It receives no source text, reference token IDs, or retrieved material.
46
+
47
+ `invert_matrices` accepts up to 32 matrices, including a list of different sequence lengths. Results contain `text`, `token_ids`, and `input_rows`. The token IDs include every visible interior prediction, including predicted special IDs; text decoding skips special tokens. The input-row count includes the visible first and last framing positions.
48
+
49
+ `invert_text` and `invert_texts` are round-trip convenience methods. They load the separately cached pinned encoder, produce `AutoModel.last_hidden_state` without pooling, and reconstruct those states. Text producing more than 256 rows is rejected. See the [input and producer examples](https://github.com/SentiChain/aparecium/blob/master/README.md) before creating stored matrices.
50
+
51
+ CPU is the default device. MPS is available only when explicitly requested on supported hardware. An unavailable requested device raises an error. `local_files_only=True` prevents downloads; matrix loading requires the local artifact, and text convenience methods additionally require the pinned encoder files in the local cache.
52
+
53
+ ## Input contract
54
+
55
+ | Property | Required representation |
56
+ | --- | --- |
57
+ | Encoder | `sentence-transformers/all-mpnet-base-v2` |
58
+ | Encoder and tokenizer revision | `e8c3b32edf5434bc2275fc9bab85f82640a19130` |
59
+ | States | Complete `AutoModel.last_hidden_state`, with no pooling or row normalization |
60
+ | Shape per input | 3 through 256 rows by 768 columns |
61
+ | Stored dtype | Native float32 |
62
+ | Framing | Include first and last visible beginning/end positions |
63
+ | Optional mask | Binary visible prefix with right padding; at least three visible rows |
64
+ | Values | Finite real numbers; conversion to float32 must not overflow |
65
+
66
+ Pooled 768-element sentence vectors are incompatible. A pooled vector cannot substitute for the full token matrix, and vectors from another encoder are unsupported even when their width matches. The caller must preserve encoder provenance because matrix shape does not identify how states were produced.
67
+
68
+ ## Architecture and decoding
69
+
70
+ | Component | Configuration |
71
+ | --- | --- |
72
+ | Nonlinear projection | Dense 768-to-768 layer, GELU, and LayerNorm |
73
+ | Learned vocabulary bias | One bias per vocabulary entry |
74
+ | Learned parameters | 622,655 |
75
+ | Original frozen vocabulary | 30,527 entries by 768 dimensions, totaling 23,444,736 parameters |
76
+ | Token selection | Float32 top-one argmax at each visible token row |
77
+ | Framing removal | Remove only the known first and last visible positions |
78
+ | Text decoding | Skip special tokens; disable tokenization-space cleanup |
79
+
80
+ The learned projection and vocabulary bias were fitted while the original MPNet input-vocabulary weights remained unchanged. Predictions are selected independently for each token state; each state already contains context supplied by the encoder. Reconstruction does not include source retrieval, text repair, sampling, or a confidence-based withholding rule. Token predictions are not calibrated probabilities of source fidelity.
81
+
82
+ ## Artifact contents and configuration
83
+
84
+ The artifact contains `model.safetensors`, `config.json`, `tokenizer.json`, `tokenizer_config.json`, `special_tokens_map.json`, and `vocab.txt`, together with the model card and license notices. It contains no optimizer state or pickled model checkpoint. The Safetensors file holds the dense layer, LayerNorm, vocabulary bias, and original frozen vocabulary table.
85
+
86
+ The configuration records the following fields:
87
+
88
+ | Fields | Purpose |
89
+ | --- | --- |
90
+ | `schema_version`, `model_type`, `architecture` | Identify the supported artifact contract and computation. |
91
+ | `state_width`, `vocabulary_size`, `max_sequence_length`, `layer_norm_eps` | Fix dimensions, row limit, and LayerNorm behavior. |
92
+ | `encoder_model_id`, `encoder_revision`, `tokenizer_revision` | Pin input and tokenizer provenance. |
93
+ | `pad_token_id`, `bos_token_id`, `eos_token_id`, `unk_token_id` | Fix tokenizer framing and special-token identities. |
94
+ | `weights_file`, `weights_sha256` | Name and verify the tensor file. |
95
+ | `tensor_sha256`, `vocabulary_array_sha256` | Verify individual tensor content and the unchanged upstream vocabulary. |
96
+ | `tokenizer_files_sha256` | Verify the bundled tokenizer files. |
97
+ | `source_checkpoint_sha256` | Record the source-weight digest for artifact traceability. |
98
+
99
+ The loader validates the complete configuration, file digests, tensor names, shapes, dtype, and finite values. These integrity checks detect incompatible or altered artifacts; they do not certify reconstruction quality.
100
+
101
+ ## Training data and procedure
102
+
103
+ Training used 5,000 general-English texts and 140 original public crypto posts spanning 133 event families. General-English texts consist of short news, encyclopedic and educational passages, and social summaries from the following collections:
104
+
105
+ | Collection | Training texts |
106
+ | --- | ---: |
107
+ | C4, realnewslike | 978 |
108
+ | Common Pile News | 499 |
109
+ | HuffPost News Category | 767 |
110
+ | Wikinews | 270 |
111
+ | Wikipedia sentences | 756 |
112
+ | FineWeb-Edu | 728 |
113
+ | Webis TL;DR | 1,002 |
114
+ | **General-English total** | **5,000** |
115
+
116
+ Separate held-out collections of 500 general-English texts and 50 crypto posts supported training diagnostics. Crypto training posts were collected from September 2026 source content. Event-family, identifier, link, and normalized-text checks separated the crypto training and held-out collections.
117
+
118
+ The model completed 1,000 optimizer updates with 255,798 supervised token targets. General-English and crypto targets each contributed 127,899 presentations, giving a 50:50 target mixture. The objective was cross entropy over the original vocabulary. Training included interior content without source-derived URL masking, and the final update supplied the released parameters. These are target presentations, not distinct training examples.
119
+
120
+ The release does not redistribute training or evaluation text. See [source acknowledgments](https://github.com/SentiChain/aparecium/blob/master/ATTRIBUTIONS.md) for collection licenses and authorship.
121
+
122
+ ## Evaluation
123
+
124
+ A held-out collection contains 20 historical crypto event families and 60 original posts, with three distinct authors per event. It covers February through June 2026 and uses six bullish, six bearish, four mixed, and four unclear source contexts. This balanced historical selection does not represent live-news prevalence.
125
+
126
+ Event accounts formed from the reconstructed posts received two judgment-based source-fidelity assessments. These assessments have not been independently human validated. Both recorded the following event-level counts:
127
+
128
+ | Measure | Result |
129
+ | --- | ---: |
130
+ | Useful central claim | 20 / 20 |
131
+ | Useful without a critical assertion | 18 / 20 |
132
+ | At least one critical assertion | 2 / 20 |
133
+ | Actionable event context | 20 / 20 |
134
+
135
+ The same posts yielded 1,439 correct body token slots out of 1,713 excluding URLs, or 84.00%. Tolerated financial-value F1 was 0.860 under the primary assessment and 0.837 under the sensitivity assessment. Timing-role F1 was 0.846 and 0.835 respectively. These measures concern different aspects of recovery; none establishes complete event fidelity or trading safety.
136
+
137
+ Recorded errors include turning about 2,000 BTC into about 2,000,000 BTC and changing a 2030 forecast horizon into 2036. Ranges, conditions, and secondary quantities can be lost. Other separately composed historical collections of 20 event families produced useful accounts without critical assertions in 65% through 90% of events. Different event content prevents interpreting those percentages as a performance trend.
138
+
139
+ One recorded four-thread CPU run processed the 60 stored matrices in about 2.43 seconds, including associated validation in the measurement path. This is not an isolated decoder-throughput measurement or a service-latency guarantee. Downloads, different hardware, and sustained service workloads can change costs.
140
+
141
+ See the [benchmark details](https://github.com/SentiChain/aparecium/blob/master/docs/benchmarks.md) for role definitions, complete-coverage counts, timing scope, and qualitative errors.
142
+
143
+ ## Intended use and limitations
144
+
145
+ Aparecium supports inspecting the approximate content represented by short English MPNet token states. It is intended for workflows where a person or downstream system can inspect missing or corrupted details and consult source material when accuracy matters.
146
+
147
+ The model has not established exact quotation recovery, long-document quality, multilingual quality, verified reporting, profitable trading, or reliable unattended replacement of original posts. Historical balanced event assessments are small and judgment based. General-English training text and public crypto posts can contain incomplete, biased, inaccurate, or disputed content; reconstruction does not verify it.
148
+
149
+ Financial quantities, units, inequalities, actor roles, timing windows, action status, and negation need particular care. Multiple reconstructions can share the same wrong detail. A fluent or recognizable account does not certify that those roles survived.
150
+
151
+ ## License and attribution
152
+
153
+ Aparecium code and the learned nonlinear projection are licensed under MIT. The included original MPNet vocabulary weights and tokenizer retain their Apache-2.0 terms and applicable notices. The artifact includes upstream license material. Training-source terms remain with their owners, and public availability of an X post does not imply an open-content license.
154
+
155
+ Developed and maintained by [SentiChain](https://github.com/SentiChain). Source code, [usage documentation](https://github.com/SentiChain/aparecium/blob/master/README.md), and [issue tracking](https://github.com/SentiChain/aparecium/issues) are available in the [Aparecium repository](https://github.com/SentiChain/aparecium).
SHA256SUMS ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ab872efe3f76dd7a5961a92c49eadab7ab9a95be384be5a3bda66879e0c97c7f ATTRIBUTIONS.md
2
+ 5b00bcb8a6dc9942d8256909fe3690361786da5e0dd2d78b9eb6db8d11a08e25 LICENSE
3
+ d47c1c887f6d20e0aa41a5a8029b3a0da51b456033d490cee3c7783c0eaa2a5d NOTICE
4
+ 543ad40467f4be3f17fba4943131c3a9be42f93efcfbdeed59520db00238bc66 README.md
5
+ cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30 UPSTREAM_LICENSE
6
+ 89e261570c037e6ecb939c7deac4e186e15b8d78afab75f1114b76d29da5ea1a config.json
7
+ 6640352b827d1175d0e2d7673e6a1e61e68eea55c8ef12a9d8510dd3aa2e8584 model.safetensors
8
+ becf54aafa607d9dc2ec7e7ba8eb6ed71f5133009a815a0aa86677c733046fe2 special_tokens_map.json
9
+ d00dad6f80b7eab804479a58634a58a50966366627f847e47848bac52873995d tokenizer.json
10
+ 9b2bebc2f0cf757ba71279c15500ab39b8a5788c04b00b7fb0b7c6b958400068 tokenizer_config.json
11
+ dbd90cb94e2247bd4d4ccaecbf616d2290e66691d7d5e5bb81f063c2d0649ada vocab.txt
UPSTREAM_LICENSE ADDED
@@ -0,0 +1,202 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
config.json ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "schema_version": 1,
3
+ "model_type": "aparecium_matrix",
4
+ "architecture": "dense_gelu_layernorm_frozen_vocabulary",
5
+ "state_width": 768,
6
+ "vocabulary_size": 30527,
7
+ "encoder_model_id": "sentence-transformers/all-mpnet-base-v2",
8
+ "encoder_revision": "e8c3b32edf5434bc2275fc9bab85f82640a19130",
9
+ "tokenizer_revision": "e8c3b32edf5434bc2275fc9bab85f82640a19130",
10
+ "pad_token_id": 1,
11
+ "bos_token_id": 0,
12
+ "eos_token_id": 2,
13
+ "unk_token_id": 104,
14
+ "max_sequence_length": 256,
15
+ "layer_norm_eps": 1e-05,
16
+ "weights_file": "model.safetensors",
17
+ "weights_sha256": "6640352b827d1175d0e2d7673e6a1e61e68eea55c8ef12a9d8510dd3aa2e8584",
18
+ "source_checkpoint_sha256": "020c818a4acce8ed170d44076111751217dcd65689072ba969ad318813997116",
19
+ "vocabulary_array_sha256": "7002c8c982d9df1ddbe7cef4f392ac427ce74bebdbf98a466a2a49f5d7ddcd1b",
20
+ "tensor_sha256": {
21
+ "dense.bias": "aaeac72ea50d9a015f1828c7971785893a089b8af23df5b61bc46cf53bf25452",
22
+ "dense.weight": "c955da8b808af45dd440d23e82461f6571bb9d17f0e540661d91d89a21201651",
23
+ "layer_norm.bias": "fe9af289962d10ad51d1a45b3d204a5c28ab697959ab9f2f7c52b27f44e2dd5a",
24
+ "layer_norm.weight": "5d1e6415fd58abb9208e05b3ce75e9ff7618cde6dab4e26e8b2e84435c7d24ba",
25
+ "vocabulary": "7002c8c982d9df1ddbe7cef4f392ac427ce74bebdbf98a466a2a49f5d7ddcd1b",
26
+ "vocabulary_bias": "4f2b391deaffada907134ba70d5c83d77983c545b2e73767670b43eb8add988f"
27
+ },
28
+ "tokenizer_files_sha256": {
29
+ "tokenizer.json": "d00dad6f80b7eab804479a58634a58a50966366627f847e47848bac52873995d",
30
+ "tokenizer_config.json": "9b2bebc2f0cf757ba71279c15500ab39b8a5788c04b00b7fb0b7c6b958400068",
31
+ "special_tokens_map.json": "becf54aafa607d9dc2ec7e7ba8eb6ed71f5133009a815a0aa86677c733046fe2",
32
+ "vocab.txt": "dbd90cb94e2247bd4d4ccaecbf616d2290e66691d7d5e5bb81f063c2d0649ada"
33
+ }
34
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6640352b827d1175d0e2d7673e6a1e61e68eea55c8ef12a9d8510dd3aa2e8584
3
+ size 96270180
special_tokens_map.json ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<s>",
4
+ "single_word": false,
5
+ "lstrip": false,
6
+ "rstrip": false,
7
+ "normalized": false,
8
+ "special": true
9
+ },
10
+ "eos_token": {
11
+ "content": "</s>",
12
+ "single_word": false,
13
+ "lstrip": false,
14
+ "rstrip": false,
15
+ "normalized": false,
16
+ "special": true
17
+ },
18
+ "unk_token": {
19
+ "content": "[UNK]",
20
+ "single_word": false,
21
+ "lstrip": false,
22
+ "rstrip": false,
23
+ "normalized": false,
24
+ "special": true
25
+ },
26
+ "sep_token": {
27
+ "content": "</s>",
28
+ "single_word": false,
29
+ "lstrip": false,
30
+ "rstrip": false,
31
+ "normalized": false,
32
+ "special": true
33
+ },
34
+ "pad_token": {
35
+ "content": "<pad>",
36
+ "single_word": false,
37
+ "lstrip": false,
38
+ "rstrip": false,
39
+ "normalized": false,
40
+ "special": true
41
+ },
42
+ "cls_token": {
43
+ "content": "<s>",
44
+ "single_word": false,
45
+ "lstrip": false,
46
+ "rstrip": false,
47
+ "normalized": false,
48
+ "special": true
49
+ },
50
+ "mask_token": {
51
+ "content": "<mask>",
52
+ "single_word": false,
53
+ "lstrip": true,
54
+ "rstrip": false,
55
+ "normalized": false,
56
+ "special": true
57
+ }
58
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "backend": "tokenizers",
3
+ "bos_token": "<s>",
4
+ "cls_token": "<s>",
5
+ "do_lower_case": true,
6
+ "eos_token": "</s>",
7
+ "is_local": false,
8
+ "local_files_only": true,
9
+ "mask_token": "<mask>",
10
+ "max_length": 128,
11
+ "model_max_length": 512,
12
+ "pad_to_multiple_of": null,
13
+ "pad_token": "<pad>",
14
+ "pad_token_type_id": 0,
15
+ "padding_side": "right",
16
+ "sep_token": "</s>",
17
+ "stride": 0,
18
+ "strip_accents": null,
19
+ "tokenize_chinese_chars": true,
20
+ "tokenizer_class": "MPNetTokenizer",
21
+ "truncation_side": "right",
22
+ "truncation_strategy": "longest_first",
23
+ "unk_token": "[UNK]"
24
+ }
vocab.txt ADDED
The diff for this file is too large to render. See raw diff