Text Generation
PEFT
Safetensors
Transformers
qwen2
grpo
lora
trl
conversational
text-generation-inference
Instructions to use bimabk/environment_test with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use bimabk/environment_test with PEFT:
Base model is not found.
- Transformers
How to use bimabk/environment_test with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="bimabk/environment_test") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("bimabk/environment_test") model = AutoModelForCausalLM.from_pretrained("bimabk/environment_test", 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=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use bimabk/environment_test with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "bimabk/environment_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": "bimabk/environment_test", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/bimabk/environment_test
- SGLang
How to use bimabk/environment_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 "bimabk/environment_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": "bimabk/environment_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 "bimabk/environment_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": "bimabk/environment_test", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use bimabk/environment_test with Docker Model Runner:
docker model run hf.co/bimabk/environment_test
Upload task output 1
Browse files- adapter_config.json +5 -5
- adapter_model.safetensors +1 -1
- trainer_state.json +22 -22
- training_args.bin +1 -1
adapter_config.json
CHANGED
|
@@ -29,13 +29,13 @@
|
|
| 29 |
"rank_pattern": {},
|
| 30 |
"revision": null,
|
| 31 |
"target_modules": [
|
|
|
|
|
|
|
| 32 |
"gate_proj",
|
| 33 |
-
"o_proj",
|
| 34 |
-
"down_proj",
|
| 35 |
-
"up_proj",
|
| 36 |
"k_proj",
|
| 37 |
-
"
|
| 38 |
-
"
|
|
|
|
| 39 |
],
|
| 40 |
"target_parameters": null,
|
| 41 |
"task_type": "CAUSAL_LM",
|
|
|
|
| 29 |
"rank_pattern": {},
|
| 30 |
"revision": null,
|
| 31 |
"target_modules": [
|
| 32 |
+
"v_proj",
|
| 33 |
+
"q_proj",
|
| 34 |
"gate_proj",
|
|
|
|
|
|
|
|
|
|
| 35 |
"k_proj",
|
| 36 |
+
"up_proj",
|
| 37 |
+
"o_proj",
|
| 38 |
+
"down_proj"
|
| 39 |
],
|
| 40 |
"target_parameters": null,
|
| 41 |
"task_type": "CAUSAL_LM",
|
adapter_model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 323014168
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:403177e212d7f18549db2283c6d6f0b585a5c79befe6edc03ade708c3e0cc82b
|
| 3 |
size 323014168
|
trainer_state.json
CHANGED
|
@@ -16,36 +16,36 @@
|
|
| 16 |
"clip_ratio/low_min": 0.0,
|
| 17 |
"clip_ratio/region_mean": 0.0,
|
| 18 |
"completions/clipped_ratio": 0.0,
|
| 19 |
-
"completions/max_length":
|
| 20 |
-
"completions/max_terminated_length":
|
| 21 |
-
"completions/mean_length":
|
| 22 |
-
"completions/mean_terminated_length":
|
| 23 |
-
"completions/min_length":
|
| 24 |
-
"completions/min_terminated_length":
|
| 25 |
-
"entropy": 0.
|
| 26 |
"epoch": 4e-05,
|
| 27 |
"frac_reward_zero_std": 0.0,
|
| 28 |
-
"grad_norm":
|
| 29 |
"kl": 0.0,
|
| 30 |
"learning_rate": 0.0,
|
| 31 |
-
"loss": -0.
|
| 32 |
-
"num_tokens":
|
| 33 |
-
"reward": -0.
|
| 34 |
-
"reward_std": 0.
|
| 35 |
-
"rewards/rollout_reward_func/mean": -0.
|
| 36 |
-
"rewards/rollout_reward_func/std": 0.
|
| 37 |
-
"sampling/importance_sampling_ratio/max": 1.
|
| 38 |
-
"sampling/importance_sampling_ratio/mean": 0.
|
| 39 |
-
"sampling/importance_sampling_ratio/min": 0.
|
| 40 |
-
"sampling/sampling_logp_difference/max": 0.
|
| 41 |
-
"sampling/sampling_logp_difference/mean": 0.
|
| 42 |
"step": 1,
|
| 43 |
-
"step_time":
|
| 44 |
}
|
| 45 |
],
|
| 46 |
"logging_steps": 1.0,
|
| 47 |
-
"max_steps":
|
| 48 |
-
"num_input_tokens_seen":
|
| 49 |
"num_train_epochs": 1,
|
| 50 |
"save_steps": 500,
|
| 51 |
"stateful_callbacks": {
|
|
|
|
| 16 |
"clip_ratio/low_min": 0.0,
|
| 17 |
"clip_ratio/region_mean": 0.0,
|
| 18 |
"completions/clipped_ratio": 0.0,
|
| 19 |
+
"completions/max_length": 488.0,
|
| 20 |
+
"completions/max_terminated_length": 488.0,
|
| 21 |
+
"completions/mean_length": 94.015625,
|
| 22 |
+
"completions/mean_terminated_length": 94.015625,
|
| 23 |
+
"completions/min_length": 3.0,
|
| 24 |
+
"completions/min_terminated_length": 3.0,
|
| 25 |
+
"entropy": 0.7336700148880482,
|
| 26 |
"epoch": 4e-05,
|
| 27 |
"frac_reward_zero_std": 0.0,
|
| 28 |
+
"grad_norm": 1.1460554599761963,
|
| 29 |
"kl": 0.0,
|
| 30 |
"learning_rate": 0.0,
|
| 31 |
+
"loss": -0.0334,
|
| 32 |
+
"num_tokens": 91761.0,
|
| 33 |
+
"reward": -0.9690441489219666,
|
| 34 |
+
"reward_std": 0.3482987880706787,
|
| 35 |
+
"rewards/rollout_reward_func/mean": -0.9690441489219666,
|
| 36 |
+
"rewards/rollout_reward_func/std": 0.42848339676856995,
|
| 37 |
+
"sampling/importance_sampling_ratio/max": 1.3604308366775513,
|
| 38 |
+
"sampling/importance_sampling_ratio/mean": 0.9847421646118164,
|
| 39 |
+
"sampling/importance_sampling_ratio/min": 0.5550056099891663,
|
| 40 |
+
"sampling/sampling_logp_difference/max": 0.5354118347167969,
|
| 41 |
+
"sampling/sampling_logp_difference/mean": 0.05978238210082054,
|
| 42 |
"step": 1,
|
| 43 |
+
"step_time": 15.418727782999895
|
| 44 |
}
|
| 45 |
],
|
| 46 |
"logging_steps": 1.0,
|
| 47 |
+
"max_steps": 1800,
|
| 48 |
+
"num_input_tokens_seen": 91761,
|
| 49 |
"num_train_epochs": 1,
|
| 50 |
"save_steps": 500,
|
| 51 |
"stateful_callbacks": {
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 8145
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:902e70f01b1cfe2aba74665cf0e6be5e37892fa9325a84c788eeda9494a62727
|
| 3 |
size 8145
|