Instructions to use alivi/fine-tuning_Zephyr-7b_SpanishQA with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use alivi/fine-tuning_Zephyr-7b_SpanishQA with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="alivi/fine-tuning_Zephyr-7b_SpanishQA")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("alivi/fine-tuning_Zephyr-7b_SpanishQA") model = AutoModelForCausalLM.from_pretrained("alivi/fine-tuning_Zephyr-7b_SpanishQA", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use alivi/fine-tuning_Zephyr-7b_SpanishQA with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "alivi/fine-tuning_Zephyr-7b_SpanishQA" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "alivi/fine-tuning_Zephyr-7b_SpanishQA", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/alivi/fine-tuning_Zephyr-7b_SpanishQA
- SGLang
How to use alivi/fine-tuning_Zephyr-7b_SpanishQA 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 "alivi/fine-tuning_Zephyr-7b_SpanishQA" \ --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": "alivi/fine-tuning_Zephyr-7b_SpanishQA", "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 "alivi/fine-tuning_Zephyr-7b_SpanishQA" \ --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": "alivi/fine-tuning_Zephyr-7b_SpanishQA", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use alivi/fine-tuning_Zephyr-7b_SpanishQA with Docker Model Runner:
docker model run hf.co/alivi/fine-tuning_Zephyr-7b_SpanishQA
Upload model
Browse files- README.md +3 -3
- adapter_config.json +2 -2
- adapter_model.safetensors +1 -1
README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
| 1 |
---
|
| 2 |
-
library_name: transformers
|
| 3 |
-
datasets:
|
| 4 |
-
- alivi/QASpanish
|
| 5 |
language:
|
| 6 |
- en
|
| 7 |
- es
|
|
|
|
|
|
|
|
|
|
| 8 |
pipeline_tag: text-generation
|
| 9 |
---
|
| 10 |
|
|
|
|
| 1 |
---
|
|
|
|
|
|
|
|
|
|
| 2 |
language:
|
| 3 |
- en
|
| 4 |
- es
|
| 5 |
+
library_name: transformers
|
| 6 |
+
datasets:
|
| 7 |
+
- alivi/QASpanish
|
| 8 |
pipeline_tag: text-generation
|
| 9 |
---
|
| 10 |
|
adapter_config.json
CHANGED
|
@@ -20,8 +20,8 @@
|
|
| 20 |
"rank_pattern": {},
|
| 21 |
"revision": null,
|
| 22 |
"target_modules": [
|
| 23 |
-
"
|
| 24 |
-
"
|
| 25 |
],
|
| 26 |
"task_type": "CAUSAL_LM",
|
| 27 |
"use_dora": false,
|
|
|
|
| 20 |
"rank_pattern": {},
|
| 21 |
"revision": null,
|
| 22 |
"target_modules": [
|
| 23 |
+
"v_proj",
|
| 24 |
+
"q_proj"
|
| 25 |
],
|
| 26 |
"task_type": "CAUSAL_LM",
|
| 27 |
"use_dora": false,
|
adapter_model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 109069176
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d5f9d1e19b54a969fa1a3e7e30740e2bd486c385313acda81cdfae66a1c3929b
|
| 3 |
size 109069176
|