Transformers
ONNX
PyTorch
English
Korean
Spanish
astrology
saju
attention
psychology
vocation
semantic-search
Instructions to use srSergio/saju with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use srSergio/saju with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("srSergio/saju", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -29,13 +29,18 @@ Unlike any traditional astrological software, this model was trained on 100,000
|
|
| 29 |
3. It cross-references the 12 outputs against a massive database of 100+ encoded professions.
|
| 30 |
4. It predicts the *best profession* and **deduces the hidden astrological birth hour** simultaneously.
|
| 31 |
|
| 32 |
-
##
|
| 33 |
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 39 |
|
| 40 |
## How to play with it locally
|
| 41 |
|
|
@@ -43,19 +48,22 @@ You can use the model immediately using the standard PyTorch loading mechanism a
|
|
| 43 |
|
| 44 |
```bash
|
| 45 |
# Clone the repository
|
| 46 |
-
git clone https://huggingface.co/
|
| 47 |
-
cd saju
|
| 48 |
|
| 49 |
-
# Run the inference engine
|
| 50 |
-
python saju_inference.py
|
| 51 |
```
|
| 52 |
|
| 53 |
-
If you know your exact hour of birth, you can pass it to
|
| 54 |
```bash
|
| 55 |
-
|
| 56 |
-
python saju_inference.py 1993-02-15 14
|
| 57 |
```
|
| 58 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 59 |
## How to use the Python Class directly
|
| 60 |
|
| 61 |
```python
|
|
|
|
| 29 |
3. It cross-references the 12 outputs against a massive database of 100+ encoded professions.
|
| 30 |
4. It predicts the *best profession* and **deduces the hidden astrological birth hour** simultaneously.
|
| 31 |
|
| 32 |
+
## Technical Deep-Dive: Saju-Attention Mechanism
|
| 33 |
|
| 34 |
+
Traditional Saju assumes a static relationship between the Four Pillars. **Saju 4.0** treats these pillars as tokens in a semantic sequence:
|
| 35 |
+
1. **Embedding Layer:** Year, Month, Day, and Time pillars are converted into 384-dimensional dense vectors using a pre-trained `paraphrase-multilingual-MiniLM-L12-v2` transformer.
|
| 36 |
+
2. **Multi-Head Attention:** A custom PyTorch layer allows the "Tiger" of the Year to pay "attention" to the "Rabbit" of the Day, discovering hidden synergistic correlations that simple linear models miss.
|
| 37 |
+
3. **Semantic Anchoring:** Instead of predicting a fixed category, the model projects the Saju-Context into the *same vector space* as professions. This allows for **Open-Vocabulary Inference**—you can ask the model about "Quantum Physicist" or "Content Creator" even if those weren't explicitly used during training.
|
| 38 |
+
|
| 39 |
+
## The MIL Moonshot: Reverse Rectification
|
| 40 |
+
The most innovative feature is how we handled the lack of birth times in our 100k training records:
|
| 41 |
+
- **Challenge:** Wikipedia bio data almost never includes birth hours.
|
| 42 |
+
- **Solution:** We implemented **Multiple Instance Learning (MIL)**. During every training step, the model evaluates all 12 potential time pillars for an individual. It selects the one that yields the highest similarity to the known profession (the "witness") and updates its attention weights based on that optimized temporal path.
|
| 43 |
+
- **Result:** The model learned not just what jobs people have, but *which astrological hours* are most probable for high-achievers in specific fields.
|
| 44 |
|
| 45 |
## How to play with it locally
|
| 46 |
|
|
|
|
| 48 |
|
| 49 |
```bash
|
| 50 |
# Clone the repository
|
| 51 |
+
git clone https://huggingface.co/srSergio/saju
|
| 52 |
+
cd saju
|
| 53 |
|
| 54 |
+
# Run the inference engine (Format: YYYY-MM-DD)
|
| 55 |
+
python saju_inference.py 1998-01-07
|
| 56 |
```
|
| 57 |
|
| 58 |
+
If you know your exact hour of birth (0-24), you can pass it to get a deterministic Top 10 career ranking:
|
| 59 |
```bash
|
| 60 |
+
python saju_inference.py 1998-01-07 22
|
|
|
|
| 61 |
```
|
| 62 |
|
| 63 |
+
## Hardware & Ethics
|
| 64 |
+
- **Inference:** Lightweight, runs on any modern CPU in < 1 second.
|
| 65 |
+
- **Ethics:** This is a probabilistic statistical model based on historical biographical data. It should be used for vocational inspiration and entertainment, not for critical life-path decisions.
|
| 66 |
+
|
| 67 |
## How to use the Python Class directly
|
| 68 |
|
| 69 |
```python
|