Text Generation
Transformers
Safetensors
qwen2
llama-factory
full
Generated from Trainer
conversational
text-generation-inference
Instructions to use iproskurina/qwen-hf-r100-seeded-recursive-np-iter1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use iproskurina/qwen-hf-r100-seeded-recursive-np-iter1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="iproskurina/qwen-hf-r100-seeded-recursive-np-iter1") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("iproskurina/qwen-hf-r100-seeded-recursive-np-iter1") model = AutoModelForCausalLM.from_pretrained("iproskurina/qwen-hf-r100-seeded-recursive-np-iter1", 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 iproskurina/qwen-hf-r100-seeded-recursive-np-iter1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "iproskurina/qwen-hf-r100-seeded-recursive-np-iter1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "iproskurina/qwen-hf-r100-seeded-recursive-np-iter1", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/iproskurina/qwen-hf-r100-seeded-recursive-np-iter1
- SGLang
How to use iproskurina/qwen-hf-r100-seeded-recursive-np-iter1 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 "iproskurina/qwen-hf-r100-seeded-recursive-np-iter1" \ --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": "iproskurina/qwen-hf-r100-seeded-recursive-np-iter1", "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 "iproskurina/qwen-hf-r100-seeded-recursive-np-iter1" \ --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": "iproskurina/qwen-hf-r100-seeded-recursive-np-iter1", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use iproskurina/qwen-hf-r100-seeded-recursive-np-iter1 with Docker Model Runner:
docker model run hf.co/iproskurina/qwen-hf-r100-seeded-recursive-np-iter1
| { | |
| "best_global_step": null, | |
| "best_metric": null, | |
| "best_model_checkpoint": null, | |
| "epoch": 1.0, | |
| "eval_steps": 500, | |
| "global_step": 814, | |
| "is_hyper_param_search": false, | |
| "is_local_process_zero": true, | |
| "is_world_process_zero": true, | |
| "log_history": [ | |
| { | |
| "epoch": 0.12298232129131437, | |
| "grad_norm": 6.340283393859863, | |
| "learning_rate": 4.9933489107396326e-05, | |
| "loss": 2.0775, | |
| "step": 100 | |
| }, | |
| { | |
| "epoch": 0.24596464258262873, | |
| "grad_norm": 5.597610950469971, | |
| "learning_rate": 4.6913866856909926e-05, | |
| "loss": 2.2188, | |
| "step": 200 | |
| }, | |
| { | |
| "epoch": 0.3689469638739431, | |
| "grad_norm": 5.629631519317627, | |
| "learning_rate": 3.991940046522724e-05, | |
| "loss": 2.2347, | |
| "step": 300 | |
| }, | |
| { | |
| "epoch": 0.49192928516525747, | |
| "grad_norm": 5.603486061096191, | |
| "learning_rate": 3.0218780389368545e-05, | |
| "loss": 2.2132, | |
| "step": 400 | |
| }, | |
| { | |
| "epoch": 0.6149116064565718, | |
| "grad_norm": 5.57080602645874, | |
| "learning_rate": 1.9571552451450542e-05, | |
| "loss": 2.1841, | |
| "step": 500 | |
| }, | |
| { | |
| "epoch": 0.7378939277478862, | |
| "grad_norm": 5.660244464874268, | |
| "learning_rate": 9.908962828396607e-06, | |
| "loss": 2.15, | |
| "step": 600 | |
| }, | |
| { | |
| "epoch": 0.8608762490392006, | |
| "grad_norm": 5.181326389312744, | |
| "learning_rate": 2.98365919315127e-06, | |
| "loss": 2.1234, | |
| "step": 700 | |
| }, | |
| { | |
| "epoch": 0.9838585703305149, | |
| "grad_norm": 5.189568519592285, | |
| "learning_rate": 5.178692436005883e-08, | |
| "loss": 2.0872, | |
| "step": 800 | |
| }, | |
| { | |
| "epoch": 1.0, | |
| "step": 814, | |
| "total_flos": 5454715103844864.0, | |
| "train_loss": 2.1604688349168484, | |
| "train_runtime": 2203.1408, | |
| "train_samples_per_second": 11.81, | |
| "train_steps_per_second": 0.369 | |
| } | |
| ], | |
| "logging_steps": 100, | |
| "max_steps": 814, | |
| "num_input_tokens_seen": 0, | |
| "num_train_epochs": 1, | |
| "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": 5454715103844864.0, | |
| "train_batch_size": 2, | |
| "trial_name": null, | |
| "trial_params": null | |
| } | |