Text Generation
Transformers
TensorBoard
Safetensors
qwen2
trl
sft
Generated from Trainer
conversational
text-generation-inference
Instructions to use yzhuang/Qwen1.5-7B-Chat_fictional_arc_challenge_Chinese_v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use yzhuang/Qwen1.5-7B-Chat_fictional_arc_challenge_Chinese_v1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="yzhuang/Qwen1.5-7B-Chat_fictional_arc_challenge_Chinese_v1") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("yzhuang/Qwen1.5-7B-Chat_fictional_arc_challenge_Chinese_v1") model = AutoModelForCausalLM.from_pretrained("yzhuang/Qwen1.5-7B-Chat_fictional_arc_challenge_Chinese_v1", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use yzhuang/Qwen1.5-7B-Chat_fictional_arc_challenge_Chinese_v1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "yzhuang/Qwen1.5-7B-Chat_fictional_arc_challenge_Chinese_v1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "yzhuang/Qwen1.5-7B-Chat_fictional_arc_challenge_Chinese_v1", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/yzhuang/Qwen1.5-7B-Chat_fictional_arc_challenge_Chinese_v1
- SGLang
How to use yzhuang/Qwen1.5-7B-Chat_fictional_arc_challenge_Chinese_v1 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 "yzhuang/Qwen1.5-7B-Chat_fictional_arc_challenge_Chinese_v1" \ --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": "yzhuang/Qwen1.5-7B-Chat_fictional_arc_challenge_Chinese_v1", "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 "yzhuang/Qwen1.5-7B-Chat_fictional_arc_challenge_Chinese_v1" \ --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": "yzhuang/Qwen1.5-7B-Chat_fictional_arc_challenge_Chinese_v1", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use yzhuang/Qwen1.5-7B-Chat_fictional_arc_challenge_Chinese_v1 with Docker Model Runner:
docker model run hf.co/yzhuang/Qwen1.5-7B-Chat_fictional_arc_challenge_Chinese_v1
End of training
Browse files- README.md +3 -3
- model-00001-of-00004.safetensors +1 -1
- model-00002-of-00004.safetensors +1 -1
- model-00003-of-00004.safetensors +1 -1
- model-00004-of-00004.safetensors +1 -1
- runs/Jun08_07-25-35_sn4622116170/events.out.tfevents.1717831536.sn4622116170 +3 -0
- runs/Jun08_08-13-07_sn4622116170/events.out.tfevents.1717834387.sn4622116170 +3 -0
- training_args.bin +1 -1
README.md
CHANGED
|
@@ -40,11 +40,11 @@ The following hyperparameters were used during training:
|
|
| 40 |
- train_batch_size: 1
|
| 41 |
- eval_batch_size: 2
|
| 42 |
- seed: 42
|
| 43 |
-
- gradient_accumulation_steps:
|
| 44 |
-
- total_train_batch_size:
|
| 45 |
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 46 |
- lr_scheduler_type: linear
|
| 47 |
-
- num_epochs:
|
| 48 |
|
| 49 |
### Training results
|
| 50 |
|
|
|
|
| 40 |
- train_batch_size: 1
|
| 41 |
- eval_batch_size: 2
|
| 42 |
- seed: 42
|
| 43 |
+
- gradient_accumulation_steps: 32
|
| 44 |
+
- total_train_batch_size: 32
|
| 45 |
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 46 |
- lr_scheduler_type: linear
|
| 47 |
+
- num_epochs: 108
|
| 48 |
|
| 49 |
### Training results
|
| 50 |
|
model-00001-of-00004.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4988482416
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:786864fc51f77c508ac94daed1bf81c5360f87dba1edb9c7090136455defb991
|
| 3 |
size 4988482416
|
model-00002-of-00004.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4981244328
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3e91473138d7a47482c3269f4a083978ebe8c62c7d658d20d55bae6d95b220cd
|
| 3 |
size 4981244328
|
model-00003-of-00004.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4228306968
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a6ab5b2da9bac652044d5386429d1dfd2a3f67eff4e78c71e337c06f981da3c1
|
| 3 |
size 4228306968
|
model-00004-of-00004.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 1244659840
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:62781315e2a69371169fedffa3100daef3d14f764ab00f7af6430fd9c0eeb163
|
| 3 |
size 1244659840
|
runs/Jun08_07-25-35_sn4622116170/events.out.tfevents.1717831536.sn4622116170
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6f963a18020b1d8ae27ee3d4b97b387aeccacb9da1e1f8c2fff2722133e09338
|
| 3 |
+
size 4721
|
runs/Jun08_08-13-07_sn4622116170/events.out.tfevents.1717834387.sn4622116170
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7caedb4d24af1a5f9701e6485764d3abe5b61bb60804d5eafb9631b744d336ef
|
| 3 |
+
size 5069
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4984
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:eaa8bb414537b276730b8f11009fc3c647c41ca9a2d74651fd4aa7d2f32401f8
|
| 3 |
size 4984
|