Text Generation
PEFT
Safetensors
Transformers
qwen2
grpo
lora
trl
conversational
text-generation-inference
Instructions to use bimabk/environment_test_affine with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use bimabk/environment_test_affine with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("None") model = PeftModel.from_pretrained(base_model, "bimabk/environment_test_affine") - Transformers
How to use bimabk/environment_test_affine with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="bimabk/environment_test_affine") 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("bimabk/environment_test_affine") model = AutoModelForCausalLM.from_pretrained("bimabk/environment_test_affine", 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 bimabk/environment_test_affine with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "bimabk/environment_test_affine" # 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_affine", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/bimabk/environment_test_affine
- SGLang
How to use bimabk/environment_test_affine 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_affine" \ --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_affine", "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_affine" \ --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_affine", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use bimabk/environment_test_affine with Docker Model Runner:
docker model run hf.co/bimabk/environment_test_affine
Commit History
-
Upload task output 1
Verified signature5ed91fc -
Upload task output 1
Verified signature4814b81
-
Upload task output 1
Verified signatureb827c8e -
Upload task output 1
Verified signature0a2c360 -
Upload task output 1
Verified signature4940b17 -
Upload task output 1
Verified signatureafe908f -
Upload task output 1
Verified signatured3155ba -
Upload task output 1
Verified signatureeb8900c -
Upload task output 1
Verified signatureaab54a2 -
Upload task output 1
Verified signature85f5c77 -
Upload task output 1
Verified signaturefbaa174 -
Upload task output 1
Verified signaturebd3894c -
Upload task output 1
Verified signature2b95512 -
Upload task output 1
Verified signaturef752776 -
Upload task output 1
Verified signature943f97e
-
Upload task output 1
Verified signaturec595107 -
Upload task output 1
Verified signatured5eec2e -
Upload task output 1
Verified signature0f396d1 -
Upload task output 1
Verified signature4bb6b7e -
Upload task output 1
Verified signature3a6d21c
-
Upload task output 1
Verified signature104dc15
-
Upload task output 1
Verified signaturee466445
-
Upload task output 1
Verified signature10b7016
-
Upload task output 1
Verified signaturec9d191d -
Upload task output 1
Verified signature85c6141 -
Upload task output 1
Verified signature0eeb6d2 -
Upload task output 1
Verified signature0c6e68e -
initial commit
Verified signature1c140b9