Instructions to use shafire/CryptoAI with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use shafire/CryptoAI with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="shafire/CryptoAI") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("shafire/CryptoAI") model = AutoModelForCausalLM.from_pretrained("shafire/CryptoAI") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - PEFT
How to use shafire/CryptoAI with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use shafire/CryptoAI with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "shafire/CryptoAI" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "shafire/CryptoAI", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/shafire/CryptoAI
- SGLang
How to use shafire/CryptoAI with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "shafire/CryptoAI" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "shafire/CryptoAI", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "shafire/CryptoAI" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "shafire/CryptoAI", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use shafire/CryptoAI with Docker Model Runner:
docker model run hf.co/shafire/CryptoAI
🧠 CryptoAI — Llama 3.1 Fine-Tuned for Finance & Autonomous Agents
CryptoAI is a purpose-tuned LLM based on Meta's Llama 3.1–8B, trained on domain-specific data focused on financial logic, LLM agent workflows, and automated task generation. Designed to power on-chain AI agents, it's part of the broader CryptoAI ecosystem for monetized intelligence.
📂 Dataset Summary
This model was fine-tuned on over 10,000+ instruction-style samples simulating:
- Financial queries and tokenomics reasoning
- LLM-agent interaction patterns
- Crypto automation logic
- DeFi, trading signals, news interpretation
- Smart contract and API-triggered tasks
- Natural language prompts for dynamic workflow creation
The format follows a custom instruction-based structure optimized for reasoning tasks and agentic workflows—not just casual conversation.
See our Docs page for more info: docs.soulai.info
💻 Usage (via Transformers)
from transformers import AutoModelForCausalLM, AutoTokenizer
model_path = "YOUR_HF_USERNAME/YOUR_MODEL_NAME"
tokenizer = AutoTokenizer.from_pretrained(model_path)
model = AutoModelForCausalLM.from_pretrained(
model_path,
device_map="auto",
torch_dtype="auto"
).eval()
messages = [{"role": "user", "content": "How do autonomous LLM agents work?"}]
input_ids = tokenizer.apply_chat_template(
conversation=messages,
tokenize=True,
add_generation_prompt=True,
return_tensors="pt"
)
output_ids = model.generate(input_ids.to("cuda"), max_new_tokens=256)
response = tokenizer.decode(output_ids[0][input_ids.shape[1]:], skip_special_tokens=True)
print(response)
---
🛠️ Hugging Face Inference API Use it via API for quick tasks:
bash
Copy
Edit
curl https://api-inference.huggingface.co/models/YOUR_HF_USERNAME/YOUR_MODEL_NAME
-X POST
-d '{"inputs": "Tell me something about agent-based AI."}'
-H "Authorization: Bearer YOUR_HF_TOKEN"
🧬 Model Details
Base Model: Meta-Llama-3.1–8B
Tuning Method: PEFT / LoRA
Training Platform: 🤗 AutoTrain
Optimized For: Conversational logic, chain-of-thought, and agent workflow simulation
🔗 CryptoAI Ecosystem Integration CryptoAI is designed to plug into CryptoAI’s decentralized agent network:
Deploy agents via Agent Forge
Trigger smart contracts or APIs through LLM-generated logic
Earn revenue through tokenized usage fees in $SOUL
Run tasks autonomously while sharing fees with dataset, model, and node contributors
⚙️ Ideal Use Cases Building conversational agent front-ends (chat, Discord, IVR)
Automating repetitive financial workflows
Simulating DeFi scenarios and logic
Teaching agents how to respond to vague, ambiguous tasks with structured outputs
Integrating GPT-like intelligence with programmable smart contract logic
🔒 License This model is distributed under a restricted "other" license. Use for commercial applications or LLM training requires permission. The base Llama 3 license and Meta's terms still apply.
💡 Notes & Limitations Output may vary depending on GPU, prompt phrasing, and context.
Not suitable for high-stakes financial decision-making out-of-the-box.
Use as a base agent layer with real-time validation or approval loops.
📞 Get In Touch Want to build agents with CryptoAI or license the model?
💥 Powering the Next Wave of Agentic Intelligence CryptoAI isn't just a chatbot—it's a programmable foundation for monetized, on-chain agent workflows. Train once, deploy forever.
- Downloads last month
- 16