phantasm-llm 1.0.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. phantasm_llm-1.0.0/LICENSE +128 -0
  2. phantasm_llm-1.0.0/PKG-INFO +745 -0
  3. phantasm_llm-1.0.0/README.md +693 -0
  4. phantasm_llm-1.0.0/phantasm/__init__.py +26 -0
  5. phantasm_llm-1.0.0/phantasm/core/__init__.py +11 -0
  6. phantasm_llm-1.0.0/phantasm/core/cmn.py +285 -0
  7. phantasm_llm-1.0.0/phantasm/core/hgt.py +317 -0
  8. phantasm_llm-1.0.0/phantasm/core/pipeline.py +235 -0
  9. phantasm_llm-1.0.0/phantasm/core/uc.py +320 -0
  10. phantasm_llm-1.0.0/phantasm/datasets/__init__.py +3 -0
  11. phantasm_llm-1.0.0/phantasm/datasets/loader.py +397 -0
  12. phantasm_llm-1.0.0/phantasm/training/__init__.py +5 -0
  13. phantasm_llm-1.0.0/phantasm/training/losses.py +142 -0
  14. phantasm_llm-1.0.0/phantasm/training/metrics.py +161 -0
  15. phantasm_llm-1.0.0/phantasm/training/trainer.py +190 -0
  16. phantasm_llm-1.0.0/phantasm/utils/__init__.py +4 -0
  17. phantasm_llm-1.0.0/phantasm/utils/evaluation.py +119 -0
  18. phantasm_llm-1.0.0/phantasm/utils/visualization.py +205 -0
  19. phantasm_llm-1.0.0/phantasm_llm.egg-info/PKG-INFO +745 -0
  20. phantasm_llm-1.0.0/phantasm_llm.egg-info/SOURCES.txt +28 -0
  21. phantasm_llm-1.0.0/phantasm_llm.egg-info/dependency_links.txt +1 -0
  22. phantasm_llm-1.0.0/phantasm_llm.egg-info/entry_points.txt +2 -0
  23. phantasm_llm-1.0.0/phantasm_llm.egg-info/requires.txt +28 -0
  24. phantasm_llm-1.0.0/phantasm_llm.egg-info/top_level.txt +1 -0
  25. phantasm_llm-1.0.0/pyproject.toml +98 -0
  26. phantasm_llm-1.0.0/setup.cfg +4 -0
  27. phantasm_llm-1.0.0/tests/test_cmn.py +73 -0
  28. phantasm_llm-1.0.0/tests/test_hgt.py +60 -0
  29. phantasm_llm-1.0.0/tests/test_pipeline.py +39 -0
  30. phantasm_llm-1.0.0/tests/test_uc.py +71 -0
@@ -0,0 +1,128 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship made available under
36
+ the License, as indicated by a copyright notice that is included in
37
+ or attached to the work (an example is provided in the Appendix below).
38
+
39
+ "Derivative Works" shall mean any work, whether in Source or Object
40
+ form, that is based on (or derived from) the Work and for which the
41
+ editorial revisions, annotations, elaborations, or other derivative
42
+ transformations represent, as a whole, an original work of authorship.
43
+ For the purposes of this License, Derivative Works shall not include
44
+ works that remain separable from, or merely link (or bind by name)
45
+ to the interfaces of, the Work and Derivative Works thereof.
46
+
47
+ "Contribution" shall mean, as submitted to the Licensor for inclusion
48
+ in the Work by the copyright owner or by an individual or Legal Entity
49
+ authorized to submit on behalf of the copyright owner.
50
+
51
+ "Contributor" shall mean Licensor and any Legal Entity on behalf of
52
+ whom a Contribution has been received by the Licensor and included
53
+ within the Work.
54
+
55
+ 2. Grant of Copyright License. Subject to the terms and conditions of
56
+ this License, each Contributor hereby grants to You a perpetual,
57
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
58
+ copyright license to reproduce, prepare Derivative Works of,
59
+ publicly display, publicly perform, sublicense, and distribute the
60
+ Work and such Derivative Works in Source or Object form.
61
+
62
+ 3. Grant of Patent License. Subject to the terms and conditions of
63
+ this License, each Contributor hereby grants to You a perpetual,
64
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
65
+ (except as stated in this section) patent license to make, have made,
66
+ use, offer to sell, sell, import, and otherwise transfer the Work.
67
+
68
+ 4. Redistribution. You may reproduce and distribute copies of the
69
+ Work or Derivative Works thereof in any medium, with or without
70
+ modifications, and in Source or Object form, provided that You
71
+ meet the following conditions:
72
+
73
+ (a) You must give any other recipients of the Work or
74
+ Derivative Works a copy of this License; and
75
+
76
+ (b) You must cause any modified files to carry prominent notices
77
+ stating that You changed the files; and
78
+
79
+ (c) You must retain, in the Source form of any Derivative Works
80
+ that You distribute, all copyright, patent, trademark, and
81
+ attribution notices from the Source form of the Work; and
82
+
83
+ (d) If the Work includes a "NOTICE" text file, you must include a
84
+ readable copy of the attribution notices contained within.
85
+
86
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
87
+ any Contribution intentionally submitted for inclusion in the Work
88
+ by You to the Licensor shall be under the terms and conditions of
89
+ this License, without any additional terms or conditions.
90
+
91
+ 6. Trademarks. This License does not grant permission to use the trade
92
+ names, trademarks, service marks, or product names of the Licensor.
93
+
94
+ 7. Disclaimer of Warranty. Unless required by applicable law or
95
+ agreed to in writing, Licensor provides the Work (and each
96
+ Contributor provides its Contributions) on an "AS IS" BASIS,
97
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
98
+ implied. See the License for the specific language governing
99
+ permissions and limitations under the License.
100
+
101
+ 8. Limitation of Liability. In no event and under no legal theory,
102
+ whether in tort (including negligence), contract, or otherwise,
103
+ shall any Contributor be liable to You for damages, including any
104
+ direct, indirect, special, incidental, or exemplary damages of any
105
+ character arising as a result of this License or out of the use
106
+ or inability to use the Work.
107
+
108
+ 9. Accepting Warranty or Additional Liability. While redistributing
109
+ the Work or Derivative Works thereof, You may choose to offer,
110
+ and charge a fee for, acceptance of support, warranty, indemnity,
111
+ or other liability obligations and/or rights consistent with this
112
+ License.
113
+
114
+ END OF TERMS AND CONDITIONS
115
+
116
+ Copyright 2026 Vignesh S
117
+
118
+ Licensed under the Apache License, Version 2.0 (the "License");
119
+ you may not use this file except in compliance with the License.
120
+ You may obtain a copy of the License at
121
+
122
+ http://www.apache.org/licenses/LICENSE-2.0
123
+
124
+ Unless required by applicable law or agreed to in writing, software
125
+ distributed under the License is distributed on an "AS IS" BASIS,
126
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
127
+ See the License for the specific language governing permissions and
128
+ limitations under the License.