Instructions to use subset-data/falcon-7b-bt with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use subset-data/falcon-7b-bt with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="subset-data/falcon-7b-bt", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("subset-data/falcon-7b-bt", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use subset-data/falcon-7b-bt with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "subset-data/falcon-7b-bt" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "subset-data/falcon-7b-bt", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/subset-data/falcon-7b-bt
- SGLang
How to use subset-data/falcon-7b-bt 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 "subset-data/falcon-7b-bt" \ --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": "subset-data/falcon-7b-bt", "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 "subset-data/falcon-7b-bt" \ --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": "subset-data/falcon-7b-bt", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use subset-data/falcon-7b-bt with Docker Model Runner:
docker model run hf.co/subset-data/falcon-7b-bt
Commit ·
d577c26
1
Parent(s): ffa3a23
Training in progress, step 160
Browse files
adapter_model.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 522284877
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f17325da574bc4de45d40e009daa3f7adc44be55823cfbef4b8be9afdcd36663
|
| 3 |
size 522284877
|
last-checkpoint/adapter_model.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 522284877
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f17325da574bc4de45d40e009daa3f7adc44be55823cfbef4b8be9afdcd36663
|
| 3 |
size 522284877
|
last-checkpoint/optimizer.pt
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 1044539653
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:46a23fcd6874a1853674994bee58a2a786096d6a41cbad082a14e2a21191dc30
|
| 3 |
size 1044539653
|
last-checkpoint/rng_state.pth
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 14575
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c787baf8f99d6b2efc301f4aff54d4957ec120513fe6d10f749a942c07bf7140
|
| 3 |
size 14575
|
last-checkpoint/scheduler.pt
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 627
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4e87ab8212c9c1b5c9ac2af513be72fc40777cbdb25e7df360e56de5cd75aab0
|
| 3 |
size 627
|
last-checkpoint/trainer_state.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
{
|
| 2 |
"best_metric": null,
|
| 3 |
"best_model_checkpoint": null,
|
| 4 |
-
"epoch":
|
| 5 |
-
"global_step":
|
| 6 |
"is_hyper_param_search": false,
|
| 7 |
"is_local_process_zero": true,
|
| 8 |
"is_world_process_zero": true,
|
|
@@ -96,11 +96,17 @@
|
|
| 96 |
"learning_rate": 0.0002,
|
| 97 |
"loss": 0.0091,
|
| 98 |
"step": 150
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 99 |
}
|
| 100 |
],
|
| 101 |
"max_steps": 200,
|
| 102 |
"num_train_epochs": 50,
|
| 103 |
-
"total_flos":
|
| 104 |
"trial_name": null,
|
| 105 |
"trial_params": null
|
| 106 |
}
|
|
|
|
| 1 |
{
|
| 2 |
"best_metric": null,
|
| 3 |
"best_model_checkpoint": null,
|
| 4 |
+
"epoch": 40.0,
|
| 5 |
+
"global_step": 160,
|
| 6 |
"is_hyper_param_search": false,
|
| 7 |
"is_local_process_zero": true,
|
| 8 |
"is_world_process_zero": true,
|
|
|
|
| 96 |
"learning_rate": 0.0002,
|
| 97 |
"loss": 0.0091,
|
| 98 |
"step": 150
|
| 99 |
+
},
|
| 100 |
+
{
|
| 101 |
+
"epoch": 40.0,
|
| 102 |
+
"learning_rate": 0.0002,
|
| 103 |
+
"loss": 0.009,
|
| 104 |
+
"step": 160
|
| 105 |
}
|
| 106 |
],
|
| 107 |
"max_steps": 200,
|
| 108 |
"num_train_epochs": 50,
|
| 109 |
+
"total_flos": 5.23073568374784e+16,
|
| 110 |
"trial_name": null,
|
| 111 |
"trial_params": null
|
| 112 |
}
|