Downloads · 30 days
18
11% of all-time downloads
Virende/Solphie-1S-Foundation-Model
Solphie-1S-Foundation-Model is a machine learning model from Virende. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as agpl-3.0.
Downloads · 30 days
18
11% of all-time downloads
All-time downloads
168
Public
Parameters
8B
16.2 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors16.2 GB · 100%
From the Hugging Face model README

The Solphie-1S-Foundation-Model is a fine-tuned adaptation of Meta's LLaMA 3.1 8B model, purpose-built to deliver precise, context-aware assistance for developers navigating the Solana ecosystem. Engineered with state-of-the-art instruction tuning, this model excels at:
✅ Answering complex Solana-related queries
✅ Generating high-quality, Solana-optimized code snippets
✅ Debugging smart contracts and dApps
✅ Explaining technical blockchain concepts with clarity and depth
Designed to bridge AI intelligence with blockchain development, Solphie-1S empowers developers to build, optimize, and scale with on-chain knowledge at their fingertips.
(Knowledge cut-off date: 29th January, 2025)
| Parameter | Details |
|---|---|
| Base Model | Meta LLaMa 3.1 8B |
| Fine-Tuning Framework | HuggingFace Transformers, LoRA |
| Dataset Size | 13,593 high-quality Q&A pairs |
| Context Length | 4,096 tokens |
| Training Steps | 10,000 |
| Learning Rate | 3e-4 |
| Batch Size | 1 per GPU with gradient accumulation |
| Epochs | 2 |
| Model Size | 8 billion parameters (adapter size ~10 MB) |
| Pre-trained Tasks | Instruction following, Code generation, Debugging, Multi-turn Q&A |
The model was fine-tuned using parameter-efficient methods with LoRA to adapt to the Solana-specific domain. Below is a visualization of the training process:
+---------------------------+ +-----------------------------+
| Base Model | --- LoRA --> | Fine-Tuned Adapter |
| LLaMa 3.1 8B | | Solphie-1S-Foundation-Model |
+---------------------------+ +-----------------------------+
It is built over Virende-Novel-Instruct dataset, refer to this page for more details.
pip install transformers datasets peft wandb
from transformers import LlamaForCausalLM, AutoTokenizer
model_name = "Virende/Solphie-1S-Foundation-Model"
model = LlamaForCausalLM.from_pretrained(model_name)
tokenizer = AutoTokenizer.from_pretrained(model_name)
def complete_chat(model, tokenizer, messages, max_new_tokens=128):
inputs = tokenizer.apply_chat_template(messages, return_tensors="pt", return_dict=True, add_generation_prompt=True).to(model.device)
with torch.no_grad():
outputs = model.generate(**inputs, max_new_tokens=max_new_tokens)
return tokenizer.decode(outputs[0], skip_special_tokens=True)
response = complete_chat(model, tokenizer, [
{"role": "system", "content": "You are Virende, a helpful assistant."},
{"role": "user", "content": "Explain how to interact with Raydium API for token swaps."}
])
print(response)
| Split | Count | Description |
|---|---|---|
| Train | 13.6k | High-quality Q&A pairs |
Dataset Format (JSONL):
{
"question": "How to ...",
"answer": "...",
"think": "..."
}
We welcome contributions to enhance the Solphie-1S Foundation Model. Feel free to:
This model is licensed under the GNU Affero General Public License v3.0 (AGPLv3).
For questions or support, reach out via:
Special thanks to the Solana ecosystem developers and the open-source community for their invaluable contributions and support.