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
|
@@ -19,6 +19,13 @@ language:
|
|
| 19 |
|
| 20 |
# Model Card for ethicalabs/Echo-SmolTools-114M-Intent-PEFT
|
| 21 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
The **Echo-SmolTools-114M-Intent-PEFT** is a a LoRA-based adapter trained over the **Echo-DSRN-114M-v0.1.2** base RNN architecture, optimized as multilingual intentionality classifier.
|
| 23 |
|
| 24 |
**Gradio App now available:** [🎙️ Echo Intent: Multilingual Intent Classifier](https://huggingface.co/spaces/ethicalabs/Echo-SmolTools-114M-Intent-Classifier)
|
|
|
|
| 19 |
|
| 20 |
# Model Card for ethicalabs/Echo-SmolTools-114M-Intent-PEFT
|
| 21 |
|
| 22 |
+
[](https://github.com/ethicalabs-ai/Echo-DSRN/)
|
| 23 |
+
[](https://opensource.org/licenses/Apache-2.0)
|
| 24 |
+
[](https://www.python.org/downloads/)
|
| 25 |
+
[](https://huggingface.co/collections/ethicalabs/echo-dsrn)
|
| 26 |
+
[](https://huggingface.co/collections/ethicalabs/echo-dsrn-hybrid)
|
| 27 |
+
[](https://github.com/ethicalabs-ai/Echo-DSRN/blob/main/PAPER.md)
|
| 28 |
+
|
| 29 |
The **Echo-SmolTools-114M-Intent-PEFT** is a a LoRA-based adapter trained over the **Echo-DSRN-114M-v0.1.2** base RNN architecture, optimized as multilingual intentionality classifier.
|
| 30 |
|
| 31 |
**Gradio App now available:** [🎙️ Echo Intent: Multilingual Intent Classifier](https://huggingface.co/spaces/ethicalabs/Echo-SmolTools-114M-Intent-Classifier)
|