Text Generation
Transformers
PyTorch
llama
Generated from Trainer
text-generation-inference
8-bit precision
bitsandbytes
Run this model with HF Jobs
Run BogdanNV/test-trainer on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/BogdanNV/test-trainer. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/BogdanNV/test-trainer on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/BogdanNV/test-trainer. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/BogdanNV/test-trainer. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use BogdanNV/test-trainer with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use BogdanNV/test-trainer with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="BogdanNV/test-trainer")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("BogdanNV/test-trainer") model = AutoModelForCausalLM.from_pretrained("BogdanNV/test-trainer", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use BogdanNV/test-trainer with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "BogdanNV/test-trainer" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "BogdanNV/test-trainer", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/BogdanNV/test-trainer
- SGLang
How to use BogdanNV/test-trainer 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 "BogdanNV/test-trainer" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "BogdanNV/test-trainer", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "BogdanNV/test-trainer" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "BogdanNV/test-trainer", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use BogdanNV/test-trainer with Docker Model Runner:
docker model run hf.co/BogdanNV/test-trainer
End of training
Browse filesFiles changed (9)
- README.mdAdded+50
- added_tokens.jsonAdded+3
- config.jsonAdded+39
- generation_config.jsonAdded+7
- pytorch_model.binAdded+3
- special_tokens_map.jsonAdded+7
- tokenizer.modelAdded+3
- tokenizer_config.jsonAdded+37
- training_args.binAdded+3
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950---tags:- generated_from_trainermodel-index:- name: test-trainer results: []---
<!-- This model card has been generated automatically according to the information the Trainer had access to. Youshould probably proofread and complete it, then remove this comment. -->
# test-trainer
This model was trained from scratch on an unknown dataset.
## Model description
More information needed
## Intended uses & limitations
More information needed
## Training and evaluation data
More information needed
## Training procedure
### Training hyperparameters
The following hyperparameters were used during training:- learning_rate: 5e-05- train_batch_size: 8- eval_batch_size: 8- seed: 42- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08- lr_scheduler_type: linear- num_epochs: 5.0
### Training results
### Framework versions
- Transformers 4.33.0- Pytorch 2.0.0- Datasets 2.14.1- Tokenizers 0.13.3123{ "<pad>": 32000}123456789101112131415161718192021222324252627282930313233343536373839{ "_name_or_path": "merged-model", "architectures": [ "LlamaForCausalLM" ], "bos_token_id": 1, "eos_token_id": 2, "hidden_act": "silu", "hidden_size": 4096, "initializer_range": 0.02, "intermediate_size": 11008, "max_position_embeddings": 4096, "model_type": "llama", "num_attention_heads": 32, "num_hidden_layers": 32, "num_key_value_heads": 32, "pad_token_id": 0, "pretraining_tp": 1, "quantization_config": { "bnb_4bit_compute_dtype": "float32", "bnb_4bit_quant_type": "fp4", "bnb_4bit_use_double_quant": false, "llm_int8_enable_fp32_cpu_offload": false, "llm_int8_has_fp16_weight": false, "llm_int8_skip_modules": null, "llm_int8_threshold": 6.0, "load_in_4bit": false, "load_in_8bit": true, "quant_method": "bitsandbytes" }, "rms_norm_eps": 1e-05, "rope_scaling": null, "rope_theta": 10000.0, "tie_word_embeddings": false, "torch_dtype": "float16", "transformers_version": "4.33.0", "use_cache": true, "vocab_size": 32000}1234567{ "_from_model_config": true, "bos_token_id": 1, "eos_token_id": 2, "pad_token_id": 0, "transformers_version": "4.33.0"}123version https://git-lfs.github.com/spec/v1oid sha256:d53001e4b18b515804bc5ffe95c38dd24e2ce570c3d6f4005c0ee6a9d964973csize 70064392131234567{ "bos_token": "<s>", "eos_token": "</s>", "pad_token": "<unk>", "sep_token": "<s>", "unk_token": "<unk>"}123version https://git-lfs.github.com/spec/v1oid sha256:9e556afd44213b6bd1be2b850ebbbd98f5481437a8021afaf58ee7fb1818d347size 49972312345678910111213141516171819202122232425262728293031323334353637{ "add_bos_token": true, "add_eos_token": false, "bos_token": { "__type": "AddedToken", "content": "<s>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }, "clean_up_tokenization_spaces": false, "eos_token": { "__type": "AddedToken", "content": "</s>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }, "legacy": null, "model_max_length": 4096, "pad_token": null, "padding_side": "left", "sp_model_kwargs": {}, "spaces_between_special_tokens": false, "tokenizer_class": "LlamaTokenizer", "unk_token": { "__type": "AddedToken", "content": "<unk>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }, "use_default_system_prompt": true}123version https://git-lfs.github.com/spec/v1oid sha256:3d36b4c0c2bef971ca7f430b923216917fc6183b0097c2bdf3ffbb4423f3f06csize 4027README.mdAdded+50
added_tokens.jsonAdded+3
config.jsonAdded+39
generation_config.jsonAdded+7
pytorch_model.binAdded+3
special_tokens_map.jsonAdded+7
tokenizer.modelAdded+3
tokenizer_config.jsonAdded+37
training_args.binAdded+3