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 +4 -4
- adapter_model.safetensors +1 -1
- trainer_state.json +19 -19
- training_args.bin +1 -1
adapter_config.json
CHANGED
|
@@ -29,13 +29,13 @@
|
|
| 29 |
"rank_pattern": {},
|
| 30 |
"revision": null,
|
| 31 |
"target_modules": [
|
|
|
|
| 32 |
"down_proj",
|
| 33 |
-
"v_proj",
|
| 34 |
"k_proj",
|
| 35 |
-
"
|
| 36 |
-
"
|
| 37 |
"up_proj",
|
| 38 |
-
"
|
| 39 |
],
|
| 40 |
"target_parameters": null,
|
| 41 |
"task_type": "CAUSAL_LM",
|
|
|
|
| 29 |
"rank_pattern": {},
|
| 30 |
"revision": null,
|
| 31 |
"target_modules": [
|
| 32 |
+
"gate_proj",
|
| 33 |
"down_proj",
|
|
|
|
| 34 |
"k_proj",
|
| 35 |
+
"v_proj",
|
| 36 |
+
"o_proj",
|
| 37 |
"up_proj",
|
| 38 |
+
"q_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 239536272
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c21840f4e747b01282174f4331451ae9581186e575ae9022732c3f5ff5d3b93c
|
| 3 |
size 239536272
|
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": 688.0,
|
| 24 |
"completions/min_terminated_length": 688.0,
|
| 25 |
-
"entropy": 0.
|
| 26 |
"epoch": 2e-05,
|
| 27 |
"frac_reward_zero_std": 0.0,
|
| 28 |
-
"grad_norm": 2.
|
| 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":
|
| 38 |
-
"sampling/importance_sampling_ratio/mean": 1.
|
| 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": 600,
|
| 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": 1086.0,
|
| 20 |
+
"completions/max_terminated_length": 1086.0,
|
| 21 |
+
"completions/mean_length": 979.09375,
|
| 22 |
+
"completions/mean_terminated_length": 979.09375,
|
| 23 |
"completions/min_length": 688.0,
|
| 24 |
"completions/min_terminated_length": 688.0,
|
| 25 |
+
"entropy": 0.179680151399225,
|
| 26 |
"epoch": 2e-05,
|
| 27 |
"frac_reward_zero_std": 0.0,
|
| 28 |
+
"grad_norm": 2.6082828044891357,
|
| 29 |
"kl": 0.0,
|
| 30 |
"learning_rate": 0.0,
|
| 31 |
+
"loss": -0.031,
|
| 32 |
+
"num_tokens": 65935.0,
|
| 33 |
+
"reward": -0.5424860715866089,
|
| 34 |
+
"reward_std": 0.18259182572364807,
|
| 35 |
+
"rewards/rollout_reward_func/mean": -0.5424860715866089,
|
| 36 |
+
"rewards/rollout_reward_func/std": 0.18774119019508362,
|
| 37 |
+
"sampling/importance_sampling_ratio/max": 2.453181743621826,
|
| 38 |
+
"sampling/importance_sampling_ratio/mean": 1.000138282775879,
|
| 39 |
+
"sampling/importance_sampling_ratio/min": 0.4654485583305359,
|
| 40 |
+
"sampling/sampling_logp_difference/max": 0.897385835647583,
|
| 41 |
+
"sampling/sampling_logp_difference/mean": 0.023822877556085587,
|
| 42 |
"step": 1,
|
| 43 |
+
"step_time": 17.349584551999897
|
| 44 |
}
|
| 45 |
],
|
| 46 |
"logging_steps": 1.0,
|
| 47 |
"max_steps": 600,
|
| 48 |
+
"num_input_tokens_seen": 65935,
|
| 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:679164a463b407a1a65e26213a5a15185afdb00e0f798acff83b9fcfc0a6eea9
|
| 3 |
size 8145
|