Text Generation
Transformers
Safetensors
PEFT
Persian
anonymization
persian
farsi
qwen
qwen2.5
lora
finance
ner
named-entity-recognition
conversational
Instructions to use KashefTech/qwen-anonymizer-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use KashefTech/qwen-anonymizer-lora with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="KashefTech/qwen-anonymizer-lora") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("KashefTech/qwen-anonymizer-lora", device_map="auto") - PEFT
How to use KashefTech/qwen-anonymizer-lora with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use KashefTech/qwen-anonymizer-lora with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "KashefTech/qwen-anonymizer-lora" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "KashefTech/qwen-anonymizer-lora", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/KashefTech/qwen-anonymizer-lora
- SGLang
How to use KashefTech/qwen-anonymizer-lora 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 "KashefTech/qwen-anonymizer-lora" \ --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": "KashefTech/qwen-anonymizer-lora", "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 "KashefTech/qwen-anonymizer-lora" \ --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": "KashefTech/qwen-anonymizer-lora", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use KashefTech/qwen-anonymizer-lora with Docker Model Runner:
docker model run hf.co/KashefTech/qwen-anonymizer-lora
| { | |
| "best_global_step": null, | |
| "best_metric": null, | |
| "best_model_checkpoint": null, | |
| "epoch": 3.0, | |
| "eval_steps": 500, | |
| "global_step": 129, | |
| "is_hyper_param_search": false, | |
| "is_local_process_zero": true, | |
| "is_world_process_zero": true, | |
| "log_history": [ | |
| { | |
| "epoch": 0.47058823529411764, | |
| "grad_norm": 0.44545748829841614, | |
| "learning_rate": 7.6e-05, | |
| "loss": 0.687, | |
| "step": 20 | |
| }, | |
| { | |
| "epoch": 0.9411764705882353, | |
| "grad_norm": 0.3853379189968109, | |
| "learning_rate": 0.00015600000000000002, | |
| "loss": 0.6039, | |
| "step": 40 | |
| }, | |
| { | |
| "epoch": 1.4, | |
| "grad_norm": 0.4913628101348877, | |
| "learning_rate": 0.00017721518987341773, | |
| "loss": 0.4516, | |
| "step": 60 | |
| }, | |
| { | |
| "epoch": 1.8705882352941177, | |
| "grad_norm": 0.7104933261871338, | |
| "learning_rate": 0.00012658227848101267, | |
| "loss": 0.4665, | |
| "step": 80 | |
| }, | |
| { | |
| "epoch": 2.3294117647058825, | |
| "grad_norm": 0.3440960645675659, | |
| "learning_rate": 7.59493670886076e-05, | |
| "loss": 0.3683, | |
| "step": 100 | |
| }, | |
| { | |
| "epoch": 2.8, | |
| "grad_norm": 0.470425546169281, | |
| "learning_rate": 2.5316455696202533e-05, | |
| "loss": 0.3161, | |
| "step": 120 | |
| } | |
| ], | |
| "logging_steps": 20, | |
| "max_steps": 129, | |
| "num_input_tokens_seen": 0, | |
| "num_train_epochs": 3, | |
| "save_steps": 500, | |
| "stateful_callbacks": { | |
| "TrainerControl": { | |
| "args": { | |
| "should_epoch_stop": false, | |
| "should_evaluate": false, | |
| "should_log": false, | |
| "should_save": true, | |
| "should_training_stop": true | |
| }, | |
| "attributes": {} | |
| } | |
| }, | |
| "total_flos": 1.1761705519193088e+16, | |
| "train_batch_size": 1, | |
| "trial_name": null, | |
| "trial_params": null | |
| } | |