Text Generation
Transformers
Safetensors
text-to-sql
spider-dataset
sqlifyai
code-generation
conversational
Instructions to use dattheshshenoy/sqlifyai-30min-test with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use dattheshshenoy/sqlifyai-30min-test with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="dattheshshenoy/sqlifyai-30min-test") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("dattheshshenoy/sqlifyai-30min-test", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use dattheshshenoy/sqlifyai-30min-test with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "dattheshshenoy/sqlifyai-30min-test" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "dattheshshenoy/sqlifyai-30min-test", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/dattheshshenoy/sqlifyai-30min-test
- SGLang
How to use dattheshshenoy/sqlifyai-30min-test 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 "dattheshshenoy/sqlifyai-30min-test" \ --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": "dattheshshenoy/sqlifyai-30min-test", "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 "dattheshshenoy/sqlifyai-30min-test" \ --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": "dattheshshenoy/sqlifyai-30min-test", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use dattheshshenoy/sqlifyai-30min-test with Docker Model Runner:
docker model run hf.co/dattheshshenoy/sqlifyai-30min-test
30-minute rapid test training run
Browse files- README.md +0 -1
- adapter_config.json +5 -5
- adapter_model.safetensors +1 -1
README.md
CHANGED
|
@@ -1,4 +1,3 @@
|
|
| 1 |
-
|
| 2 |
---
|
| 3 |
license: apache-2.0
|
| 4 |
base_model: codellama/CodeLlama-7b-Instruct-hf
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
| 3 |
base_model: codellama/CodeLlama-7b-Instruct-hf
|
adapter_config.json
CHANGED
|
@@ -24,13 +24,13 @@
|
|
| 24 |
"rank_pattern": {},
|
| 25 |
"revision": null,
|
| 26 |
"target_modules": [
|
| 27 |
-
"q_proj",
|
| 28 |
-
"gate_proj",
|
| 29 |
-
"up_proj",
|
| 30 |
-
"k_proj",
|
| 31 |
"down_proj",
|
|
|
|
| 32 |
"v_proj",
|
| 33 |
-
"
|
|
|
|
|
|
|
|
|
|
| 34 |
],
|
| 35 |
"task_type": "CAUSAL_LM",
|
| 36 |
"trainable_token_indices": null,
|
|
|
|
| 24 |
"rank_pattern": {},
|
| 25 |
"revision": null,
|
| 26 |
"target_modules": [
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
"down_proj",
|
| 28 |
+
"o_proj",
|
| 29 |
"v_proj",
|
| 30 |
+
"up_proj",
|
| 31 |
+
"q_proj",
|
| 32 |
+
"k_proj",
|
| 33 |
+
"gate_proj"
|
| 34 |
],
|
| 35 |
"task_type": "CAUSAL_LM",
|
| 36 |
"trainable_token_indices": null,
|
adapter_model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 639691872
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:12e5bfdbeef7c9df393e4c9135ce892bb47f97d9424e2648b92865d0a550fff4
|
| 3 |
size 639691872
|