Text Generation
Transformers
PyTorch
English
RefinedWebModel
conversational
custom_code
text-generation-inference
Instructions to use Amod/falcon7b-fine-tuned-therapy-merged with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Amod/falcon7b-fine-tuned-therapy-merged with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Amod/falcon7b-fine-tuned-therapy-merged", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("Amod/falcon7b-fine-tuned-therapy-merged", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Amod/falcon7b-fine-tuned-therapy-merged with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Amod/falcon7b-fine-tuned-therapy-merged" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Amod/falcon7b-fine-tuned-therapy-merged", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Amod/falcon7b-fine-tuned-therapy-merged
- SGLang
How to use Amod/falcon7b-fine-tuned-therapy-merged 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 "Amod/falcon7b-fine-tuned-therapy-merged" \ --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": "Amod/falcon7b-fine-tuned-therapy-merged", "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 "Amod/falcon7b-fine-tuned-therapy-merged" \ --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": "Amod/falcon7b-fine-tuned-therapy-merged", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Amod/falcon7b-fine-tuned-therapy-merged with Docker Model Runner:
docker model run hf.co/Amod/falcon7b-fine-tuned-therapy-merged
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
| 1 |
---
|
| 2 |
-
library_name:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
---
|
| 4 |
## Training procedure
|
| 5 |
|
|
@@ -29,4 +35,4 @@ The following `bitsandbytes` quantization config was used during training:
|
|
| 29 |
|
| 30 |
- PEFT 0.4.0.dev0
|
| 31 |
|
| 32 |
-
- PEFT 0.4.0.dev0
|
|
|
|
| 1 |
---
|
| 2 |
+
library_name: transformers
|
| 3 |
+
license: apache-2.0
|
| 4 |
+
datasets:
|
| 5 |
+
- Amod/mental_health_counseling_conversations
|
| 6 |
+
language:
|
| 7 |
+
- en
|
| 8 |
+
pipeline_tag: conversational
|
| 9 |
---
|
| 10 |
## Training procedure
|
| 11 |
|
|
|
|
| 35 |
|
| 36 |
- PEFT 0.4.0.dev0
|
| 37 |
|
| 38 |
+
- PEFT 0.4.0.dev0
|