Instructions to use flytech/gpt-j-6b-devchat with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use flytech/gpt-j-6b-devchat with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="flytech/gpt-j-6b-devchat")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("flytech/gpt-j-6b-devchat") model = AutoModelForCausalLM.from_pretrained("flytech/gpt-j-6b-devchat") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use flytech/gpt-j-6b-devchat with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "flytech/gpt-j-6b-devchat" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "flytech/gpt-j-6b-devchat", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/flytech/gpt-j-6b-devchat
- SGLang
How to use flytech/gpt-j-6b-devchat 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 "flytech/gpt-j-6b-devchat" \ --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": "flytech/gpt-j-6b-devchat", "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 "flytech/gpt-j-6b-devchat" \ --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": "flytech/gpt-j-6b-devchat", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use flytech/gpt-j-6b-devchat with Docker Model Runner:
docker model run hf.co/flytech/gpt-j-6b-devchat
Training in progress, step 800, checkpoint
Browse files
last-checkpoint/adapter_model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 14708920
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:528a1cb84c1fa9945abbc969e94dfcc649bbfcdffde5ed1d0bbfb31a6bc945cf
|
| 3 |
size 14708920
|
last-checkpoint/optimizer.pt
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 7601989
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7867bb45f4fa0e7f5e4cc0ff28d910219ddfc1fd0301ca0e70a496143cd3e296
|
| 3 |
size 7601989
|
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:9b945e413c47252104d7d309ecd70b494c59b461206abacd8f0ee381044585e6
|
| 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:30b719cdc1f0ed508178a52385f5ad66b1ee8902b555924a5affd41a8c371317
|
| 3 |
size 627
|
last-checkpoint/trainer_state.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
| 1 |
{
|
| 2 |
"best_metric": null,
|
| 3 |
"best_model_checkpoint": null,
|
| 4 |
-
"epoch": 1.
|
| 5 |
"eval_steps": 200,
|
| 6 |
-
"global_step":
|
| 7 |
"is_hyper_param_search": false,
|
| 8 |
"is_local_process_zero": true,
|
| 9 |
"is_world_process_zero": true,
|
|
@@ -46,13 +46,26 @@
|
|
| 46 |
"eval_samples_per_second": 2.226,
|
| 47 |
"eval_steps_per_second": 0.279,
|
| 48 |
"step": 600
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 49 |
}
|
| 50 |
],
|
| 51 |
"logging_steps": 200,
|
| 52 |
"max_steps": 1593,
|
| 53 |
"num_train_epochs": 3,
|
| 54 |
"save_steps": 200,
|
| 55 |
-
"total_flos": 1.
|
| 56 |
"trial_name": null,
|
| 57 |
"trial_params": null
|
| 58 |
}
|
|
|
|
| 1 |
{
|
| 2 |
"best_metric": null,
|
| 3 |
"best_model_checkpoint": null,
|
| 4 |
+
"epoch": 1.50564617314931,
|
| 5 |
"eval_steps": 200,
|
| 6 |
+
"global_step": 800,
|
| 7 |
"is_hyper_param_search": false,
|
| 8 |
"is_local_process_zero": true,
|
| 9 |
"is_world_process_zero": true,
|
|
|
|
| 46 |
"eval_samples_per_second": 2.226,
|
| 47 |
"eval_steps_per_second": 0.279,
|
| 48 |
"step": 600
|
| 49 |
+
},
|
| 50 |
+
{
|
| 51 |
+
"epoch": 1.51,
|
| 52 |
+
"learning_rate": 2e-05,
|
| 53 |
+
"loss": 0.657,
|
| 54 |
+
"step": 800
|
| 55 |
+
},
|
| 56 |
+
{
|
| 57 |
+
"epoch": 1.51,
|
| 58 |
+
"eval_runtime": 1009.8349,
|
| 59 |
+
"eval_samples_per_second": 2.228,
|
| 60 |
+
"eval_steps_per_second": 0.279,
|
| 61 |
+
"step": 800
|
| 62 |
}
|
| 63 |
],
|
| 64 |
"logging_steps": 200,
|
| 65 |
"max_steps": 1593,
|
| 66 |
"num_train_epochs": 3,
|
| 67 |
"save_steps": 200,
|
| 68 |
+
"total_flos": 1.7867105116009267e+17,
|
| 69 |
"trial_name": null,
|
| 70 |
"trial_params": null
|
| 71 |
}
|