Instructions to use ethicalabs/Echo-SmolTools-114M-Intent-PEFT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use ethicalabs/Echo-SmolTools-114M-Intent-PEFT with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("ethicalabs/Echo-DSRN-114M-v0.1.2") model = PeftModel.from_pretrained(base_model, "ethicalabs/Echo-SmolTools-114M-Intent-PEFT") - Transformers
How to use ethicalabs/Echo-SmolTools-114M-Intent-PEFT with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="ethicalabs/Echo-SmolTools-114M-Intent-PEFT")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("ethicalabs/Echo-SmolTools-114M-Intent-PEFT", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use ethicalabs/Echo-SmolTools-114M-Intent-PEFT with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ethicalabs/Echo-SmolTools-114M-Intent-PEFT" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ethicalabs/Echo-SmolTools-114M-Intent-PEFT", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/ethicalabs/Echo-SmolTools-114M-Intent-PEFT
- SGLang
How to use ethicalabs/Echo-SmolTools-114M-Intent-PEFT 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 "ethicalabs/Echo-SmolTools-114M-Intent-PEFT" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ethicalabs/Echo-SmolTools-114M-Intent-PEFT", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "ethicalabs/Echo-SmolTools-114M-Intent-PEFT" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ethicalabs/Echo-SmolTools-114M-Intent-PEFT", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use ethicalabs/Echo-SmolTools-114M-Intent-PEFT with Docker Model Runner:
docker model run hf.co/ethicalabs/Echo-SmolTools-114M-Intent-PEFT
Update README.md
Browse files
README.md
CHANGED
|
@@ -237,3 +237,12 @@ INFO :
|
|
| 237 |
- Tokenizers: 0.22.2
|
| 238 |
- Flwr: 1.28.0
|
| 239 |
- Flwr-datasets: 0.6.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 237 |
- Tokenizers: 0.22.2
|
| 238 |
- Flwr: 1.28.0
|
| 239 |
- Flwr-datasets: 0.6.0
|
| 240 |
+
|
| 241 |
+
|
| 242 |
+
# Citation
|
| 243 |
+
|
| 244 |
+
If you use this model in your research, please cite it as follows:
|
| 245 |
+
|
| 246 |
+
```bibtex
|
| 247 |
+
@misc{Massimo Roberto Scamarcia, title={Echo-DSRN-114M: Surprise-Gated Dual-State Recurrent Architecture for Efficient Language Modeling and Classification}, DOI={10.5281/zenodo.19848279}, publisher={Zenodo}, author={Massimo Roberto Scamarcia} }
|
| 248 |
+
```
|