pyhalos 1.0.3__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 (54) hide show
  1. pyhalos-1.0.3/LICENSE +46 -0
  2. pyhalos-1.0.3/PKG-INFO +980 -0
  3. pyhalos-1.0.3/README.md +902 -0
  4. pyhalos-1.0.3/halo/__init__.py +61 -0
  5. pyhalos-1.0.3/halo/attention/__init__.py +15 -0
  6. pyhalos-1.0.3/halo/attention/global_attention.py +215 -0
  7. pyhalos-1.0.3/halo/attention/graph.py +111 -0
  8. pyhalos-1.0.3/halo/attention/halo_attention.py +118 -0
  9. pyhalos-1.0.3/halo/core/__init__.py +7 -0
  10. pyhalos-1.0.3/halo/core/config.py +72 -0
  11. pyhalos-1.0.3/halo/core/logging.py +115 -0
  12. pyhalos-1.0.3/halo/datasets/__init__.py +8 -0
  13. pyhalos-1.0.3/halo/datasets/jsonl.py +215 -0
  14. pyhalos-1.0.3/halo/datasets/streaming.py +132 -0
  15. pyhalos-1.0.3/halo/datasets/synthetic.py +55 -0
  16. pyhalos-1.0.3/halo/datasets/text.py +29 -0
  17. pyhalos-1.0.3/halo/generation/__init__.py +7 -0
  18. pyhalos-1.0.3/halo/generation/samplers.py +44 -0
  19. pyhalos-1.0.3/halo/models/__init__.py +8 -0
  20. pyhalos-1.0.3/halo/models/baseline_model.py +94 -0
  21. pyhalos-1.0.3/halo/models/halo_model.py +198 -0
  22. pyhalos-1.0.3/halo/nn/__init__.py +14 -0
  23. pyhalos-1.0.3/halo/nn/feed_forward.py +17 -0
  24. pyhalos-1.0.3/halo/nn/halo_block.py +50 -0
  25. pyhalos-1.0.3/halo/nn/rope.py +48 -0
  26. pyhalos-1.0.3/halo/tokenizers/__init__.py +15 -0
  27. pyhalos-1.0.3/halo/tokenizers/base.py +12 -0
  28. pyhalos-1.0.3/halo/tokenizers/char.py +26 -0
  29. pyhalos-1.0.3/halo/tokenizers/sentencepiece.py +119 -0
  30. pyhalos-1.0.3/halo/tokenizers/word.py +164 -0
  31. pyhalos-1.0.3/halo/training/__init__.py +7 -0
  32. pyhalos-1.0.3/halo/training/trainer.py +318 -0
  33. pyhalos-1.0.3/halo/utils/__init__.py +12 -0
  34. pyhalos-1.0.3/halo/utils/benchmarks.py +305 -0
  35. pyhalos-1.0.3/halo/utils/metrics.py +24 -0
  36. pyhalos-1.0.3/halo/utils/random.py +14 -0
  37. pyhalos-1.0.3/pyhalos.egg-info/PKG-INFO +980 -0
  38. pyhalos-1.0.3/pyhalos.egg-info/SOURCES.txt +52 -0
  39. pyhalos-1.0.3/pyhalos.egg-info/dependency_links.txt +1 -0
  40. pyhalos-1.0.3/pyhalos.egg-info/requires.txt +10 -0
  41. pyhalos-1.0.3/pyhalos.egg-info/top_level.txt +1 -0
  42. pyhalos-1.0.3/pyproject.toml +54 -0
  43. pyhalos-1.0.3/setup.cfg +4 -0
  44. pyhalos-1.0.3/tests/test_attention.py +111 -0
  45. pyhalos-1.0.3/tests/test_checkpoint.py +96 -0
  46. pyhalos-1.0.3/tests/test_config.py +86 -0
  47. pyhalos-1.0.3/tests/test_generation.py +95 -0
  48. pyhalos-1.0.3/tests/test_gradients.py +186 -0
  49. pyhalos-1.0.3/tests/test_graph.py +49 -0
  50. pyhalos-1.0.3/tests/test_memory.py +290 -0
  51. pyhalos-1.0.3/tests/test_model.py +48 -0
  52. pyhalos-1.0.3/tests/test_shapes.py +258 -0
  53. pyhalos-1.0.3/tests/test_tokenizers.py +91 -0
  54. pyhalos-1.0.3/tests/test_training.py +110 -0
pyhalos-1.0.3/LICENSE ADDED
@@ -0,0 +1,46 @@
1
+ HALO-S Framework License
2
+
3
+ Copyright (c) 2026 BUEORM. All rights reserved.
4
+
5
+ TERMS AND CONDITIONS
6
+
7
+ 1. EDUCATIONAL AND RESEARCH USE
8
+
9
+ Permission is hereby granted, free of charge, to any person or organization
10
+ obtaining a copy of this software and associated documentation files (the
11
+ "Software"), to use, copy, modify, and distribute the Software for educational
12
+ and research purposes, subject to the following conditions:
13
+
14
+ a) The above copyright notice and this permission notice shall be included
15
+ in all copies or substantial portions of the Software.
16
+
17
+ b) Any derivative work, publication, or project that uses, builds upon, or
18
+ incorporates any part of this Software MUST credit the architecture by
19
+ name. Specifically, the name "HALO-S" must appear in a visible and
20
+ accessible location (e.g., documentation, README, paper acknowledgments,
21
+ or about page) of any derivative work.
22
+
23
+ 2. COMMERCIAL AND PRODUCTION USE
24
+
25
+ Use of this Software in commercial products, production systems, or any
26
+ revenue-generating activity is NOT permitted under this free license. To obtain
27
+ a commercial license for production or commercial use, you must contact the
28
+ developer and pay the applicable license fee.
29
+
30
+ Commercial use includes, but is not limited to:
31
+ - Deploying the Software or derivative works as part of a paid service
32
+ - Incorporating the Software into proprietary products
33
+ - Using the Software to generate revenue directly or indirectly
34
+ - Offering the Software as part of a Software-as-a-Service (SaaS) platform
35
+
36
+ For commercial licensing inquiries, contact: dalusx64@gmail.com
37
+
38
+ 3. DISCLAIMER
39
+
40
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
41
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
42
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
43
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
44
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
45
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
46
+ SOFTWARE.