Text Generation
Transformers
TensorBoard
Safetensors
PEFT
llama
Trained with AutoTrain
text-generation-inference
llama-3
finance
crypto
agents
workflow-automation
soul-ai
conversational
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 Settings
- 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
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,46 +1,68 @@
|
|
| 1 |
---
|
| 2 |
tags:
|
| 3 |
- autotrain
|
| 4 |
-
- text-generation-inference
|
| 5 |
- text-generation
|
|
|
|
| 6 |
- peft
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
library_name: transformers
|
| 8 |
base_model: meta-llama/Llama-3.1-8B
|
| 9 |
-
widget:
|
| 10 |
-
- messages:
|
| 11 |
-
- role: user
|
| 12 |
-
content: What is your favorite condiment?
|
| 13 |
license: other
|
|
|
|
|
|
|
|
|
|
| 14 |
---
|
| 15 |
|
| 16 |
-
#
|
| 17 |
|
| 18 |
-
|
| 19 |
|
| 20 |
-
|
| 21 |
|
| 22 |
-
|
|
|
|
|
|
|
| 23 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 25 |
|
| 26 |
-
model_path = "
|
| 27 |
|
| 28 |
tokenizer = AutoTokenizer.from_pretrained(model_path)
|
| 29 |
model = AutoModelForCausalLM.from_pretrained(
|
| 30 |
model_path,
|
| 31 |
device_map="auto",
|
| 32 |
-
torch_dtype=
|
| 33 |
).eval()
|
| 34 |
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 39 |
|
| 40 |
-
|
| 41 |
-
output_ids = model.generate(input_ids.to('cuda'))
|
| 42 |
response = tokenizer.decode(output_ids[0][input_ids.shape[1]:], skip_special_tokens=True)
|
| 43 |
|
| 44 |
-
# Model response: "Hello! How can I assist you today?"
|
| 45 |
print(response)
|
| 46 |
-
```
|
|
|
|
| 1 |
---
|
| 2 |
tags:
|
| 3 |
- autotrain
|
|
|
|
| 4 |
- text-generation
|
| 5 |
+
- text-generation-inference
|
| 6 |
- peft
|
| 7 |
+
- llama-3
|
| 8 |
+
- finance
|
| 9 |
+
- crypto
|
| 10 |
+
- agents
|
| 11 |
+
- workflow-automation
|
| 12 |
+
- soul-ai
|
| 13 |
library_name: transformers
|
| 14 |
base_model: meta-llama/Llama-3.1-8B
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
license: other
|
| 16 |
+
widget:
|
| 17 |
+
- text: "Ask me something about AI agents or crypto."
|
| 18 |
+
- text: "What kind of automation can LLMs perform?"
|
| 19 |
---
|
| 20 |
|
| 21 |
+
# 🧠 $SOUL AI — Llama 3.1 Fine-Tuned for Finance & Autonomous Agents
|
| 22 |
|
| 23 |
+
**$SOUL AI** 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 $SOUL ecosystem for monetized intelligence.
|
| 24 |
|
| 25 |
+
---
|
| 26 |
|
| 27 |
+
## 📂 Dataset Summary
|
| 28 |
+
|
| 29 |
+
This model was fine-tuned on over 10,000+ instruction-style samples simulating:
|
| 30 |
|
| 31 |
+
- Financial queries and tokenomics reasoning
|
| 32 |
+
- LLM-agent interaction patterns
|
| 33 |
+
- Crypto automation logic
|
| 34 |
+
- DeFi, trading signals, news interpretation
|
| 35 |
+
- Smart contract and API-triggered tasks
|
| 36 |
+
- Natural language prompts for dynamic workflow creation
|
| 37 |
+
|
| 38 |
+
The format follows a custom instruction-based structure optimized for reasoning tasks and agentic workflows—not just casual conversation.
|
| 39 |
+
|
| 40 |
+
---
|
| 41 |
+
|
| 42 |
+
## 💻 Usage (via Transformers)
|
| 43 |
+
|
| 44 |
+
```python
|
| 45 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 46 |
|
| 47 |
+
model_path = "YOUR_HF_USERNAME/YOUR_MODEL_NAME"
|
| 48 |
|
| 49 |
tokenizer = AutoTokenizer.from_pretrained(model_path)
|
| 50 |
model = AutoModelForCausalLM.from_pretrained(
|
| 51 |
model_path,
|
| 52 |
device_map="auto",
|
| 53 |
+
torch_dtype="auto"
|
| 54 |
).eval()
|
| 55 |
|
| 56 |
+
messages = [{"role": "user", "content": "How do autonomous LLM agents work?"}]
|
| 57 |
+
|
| 58 |
+
input_ids = tokenizer.apply_chat_template(
|
| 59 |
+
conversation=messages,
|
| 60 |
+
tokenize=True,
|
| 61 |
+
add_generation_prompt=True,
|
| 62 |
+
return_tensors="pt"
|
| 63 |
+
)
|
| 64 |
|
| 65 |
+
output_ids = model.generate(input_ids.to("cuda"), max_new_tokens=256)
|
|
|
|
| 66 |
response = tokenizer.decode(output_ids[0][input_ids.shape[1]:], skip_special_tokens=True)
|
| 67 |
|
|
|
|
| 68 |
print(response)
|
|
|