Skip to content

Commit f4720ad

Browse files
committed
initial version
0 parents  commit f4720ad

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+9556
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
concurrency:
14+
group: "pages"
15+
cancel-in-progress: false
16+
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v4
23+
24+
- name: Setup Node
25+
uses: actions/setup-node@v4
26+
with:
27+
node-version: '20'
28+
cache: 'npm'
29+
30+
- name: Install dependencies
31+
run: npm ci
32+
33+
- name: Build
34+
run: npm run build
35+
36+
- name: Setup Pages
37+
uses: actions/configure-pages@v4
38+
39+
- name: Upload artifact
40+
uses: actions/upload-pages-artifact@v3
41+
with:
42+
path: './dist'
43+
44+
deploy:
45+
environment:
46+
name: github-pages
47+
url: ${{ steps.deployment.outputs.page_url }}
48+
runs-on: ubuntu-latest
49+
needs: build
50+
steps:
51+
- name: Deploy to GitHub Pages
52+
id: deployment
53+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
18+
.idea
19+
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?
25+
26+
# Environment variables
27+
.env
28+
.env.local
29+
.env.*.local
30+
31+
# OS files
32+
Thumbs.db

CONTRIBUTING.md

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
# Contributing to metrics.help
2+
3+
Thank you for your interest in contributing to metrics.help!
4+
5+
## How to Contribute
6+
7+
### Adding or Improving Metrics
8+
9+
Create or edit a markdown file in `src/content/metrics/` using this structure:
10+
11+
```markdown
12+
---
13+
id: metric-id
14+
name: Display Name
15+
aliases: [metric_id, alternative_name, another_alias]
16+
shortDescription: Brief one-line description of the metric.
17+
whatToLookFor:
18+
- Key point to watch for
19+
- Another important indicator
20+
- Warning signs
21+
visualizations:
22+
yDomain: [min, max] # e.g., [0, 1] or [0, 100]
23+
healthy:
24+
data:
25+
- { step: 0, value: 0.5 }
26+
- { step: 10, value: 0.7 }
27+
# Add more data points showing healthy progression
28+
unhealthy:
29+
data:
30+
- { step: 0, value: 0.5 }
31+
- { step: 10, value: 0.3 }
32+
# Add more data points showing problematic patterns
33+
---
34+
35+
# Detailed Explanation
36+
37+
Provide a clear, beginner-friendly explanation of what this metric measures and why it matters.
38+
39+
## Common Issues
40+
41+
Describe common problems or patterns to watch out for.
42+
43+
## Related Metrics
44+
45+
Link to related metrics that practitioners should also monitor.
46+
```
47+
48+
### Adding or Improving Algorithms
49+
50+
Create or edit a markdown file in `src/content/algorithms/` following a similar structure, explaining:
51+
- What the algorithm does
52+
- Key metrics to watch when using this algorithm
53+
- Common issues and solutions
54+
- Links to papers or resources
55+
56+
### Fixing Errors or Improving Clarity
57+
58+
- Fix typos or unclear explanations
59+
- Add examples or better visualizations
60+
- Improve accuracy of technical content
61+
62+
## Content Guidelines
63+
64+
When adding or editing content:
65+
66+
- **Be beginner-friendly**: Assume readers are learning
67+
- **Be practical**: Focus on actionable insights
68+
- **Be concise**: Get to the point quickly
69+
- **Use examples**: Show real patterns, not just theory
70+
- **Test visualizations**: Ensure data points create clear, understandable graphs
71+
72+
## Submitting Changes
73+
74+
1. Fork the repository
75+
2. Make your changes
76+
3. Submit a pull request with a clear description of what you've added or fixed
77+
78+
## License
79+
80+
By contributing, you agree that your contributions will be licensed under the MIT License (code) and CC0 (content).

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2024 metrics.help
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# metrics.help
2+
3+
Simple, visual explanations for machine learning metrics and algorithms.
4+
5+
## What is this?
6+
7+
metrics.help is an educational resource that helps you understand the metrics and algorithms you see during machine learning training, with a focus on LLM fine-tuning and reinforcement learning.
8+
9+
**Features:**
10+
- Visual explanations showing what healthy vs. unhealthy metric patterns look like
11+
- Clear interpretations of what to look for in your training runs
12+
- Algorithm explanations for common training techniques (DPO, GRPO, KTO, etc.)
13+
- Log analyzer to paste your training logs and get instant insights
14+
15+
## Contributing
16+
17+
Found an error? Have a suggestion? Want to add a new metric or algorithm?
18+
19+
Contributions are welcome! Please feel free to submit a Pull Request with corrections, additions, or improvements. See [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines on adding new content.
20+
21+
## License
22+
23+
Code: [MIT](LICENSE) | Content: [CC0](https://creativecommons.org/publicdomain/zero/1.0/)

0 commit comments

Comments
 (0)