CryptoBERT Quick Reference Card
π Quick Start (3 Steps)
./setup_cryptobert.sh
python3 test_cryptobert.py
python3 -c "import ai_models; ai_models.initialize_models(); print(ai_models.analyze_crypto_sentiment('Bitcoin bullish trend'))"
π Model Info
| Item |
Value |
| Model |
ElKulako/CryptoBERT |
| ID |
hf_model_elkulako_cryptobert |
| Token |
hf_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx |
| Status |
CONDITIONALLY_AVAILABLE |
π» Code Snippets
Initialize Models
import ai_models
result = ai_models.initialize_models()
print(f"CryptoBERT: {result['models']['crypto_sentiment']}")
Analyze Sentiment
sentiment = ai_models.analyze_crypto_sentiment("Bitcoin moon incoming")
print(f"{sentiment['label']}: {sentiment['score']:.2%}")
Get Model Info
info = ai_models.get_model_info()
print(f"Loaded: {info['loaded_models']['crypto_sentiment']}")
π§ Commands
Setup
export HF_TOKEN="hf_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
./setup_cryptobert.sh
Test
python3 test_cryptobert.py
Verify
python3 -c "import config; print(config.HF_USE_AUTH_TOKEN)"
π Files Created
setup_cryptobert.sh - Setup script
test_cryptobert.py - Test suite
docs/CRYPTOBERT_INTEGRATION.md - Full docs
CRYPTOBERT_SETUP_COMPLETE.md - Setup guide
INTEGRATION_SUMMARY.md - Summary
CRYPTOBERT_QUICK_REFERENCE.md - This file
π Troubleshooting
| Problem |
Solution |
| Model not loading |
./setup_cryptobert.sh |
| Auth failure |
echo $HF_TOKEN |
| Slow inference |
Check GPU: torch.cuda.is_available() |
| Import error |
pip install transformers torch |
π Documentation
- Full Guide:
docs/CRYPTOBERT_INTEGRATION.md
- Summary:
INTEGRATION_SUMMARY.md
- Setup:
CRYPTOBERT_SETUP_COMPLETE.md
β
Status
β Configuration: Complete
β Authentication: Configured
β Integration: Active
β Testing: Ready
β Documentation: Complete
Next: Run python3 test_cryptobert.py π―