Text Generation
Transformers
PyTorch
TensorBoard
Safetensors
llama
Generated from Trainer
text-generation-inference
Run this model with HF Jobs
Run flytech/devchat-llama-7b 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/flytech/devchat-llama-7b. 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/flytech/devchat-llama-7b 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/flytech/devchat-llama-7b. 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/flytech/devchat-llama-7b. 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 flytech/devchat-llama-7b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use flytech/devchat-llama-7b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="flytech/devchat-llama-7b")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("flytech/devchat-llama-7b") model = AutoModelForCausalLM.from_pretrained("flytech/devchat-llama-7b", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use flytech/devchat-llama-7b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "flytech/devchat-llama-7b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "flytech/devchat-llama-7b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/flytech/devchat-llama-7b
- SGLang
How to use flytech/devchat-llama-7b 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 "flytech/devchat-llama-7b" \ --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": "flytech/devchat-llama-7b", "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 "flytech/devchat-llama-7b" \ --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": "flytech/devchat-llama-7b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use flytech/devchat-llama-7b with Docker Model Runner:
docker model run hf.co/flytech/devchat-llama-7b
Training in progress, step 100, checkpoint
Browse filesFiles changed (7)
3 unmodified lines4567891011121314151617181920217 unmodified lines2930313233343 unmodified lines## Training procedureThe following `bitsandbytes` quantization config was used during training:- quant_method: bitsandbytes- load_in_8bit: False- load_in_4bit: True- llm_int8_threshold: 6.0- llm_int8_skip_modules: None- llm_int8_enable_fp32_cpu_offload: False- llm_int8_has_fp16_weight: False- bnb_4bit_quant_type: nf4- bnb_4bit_use_double_quant: True- bnb_4bit_compute_dtype: float16The following `bitsandbytes` quantization config was used during training:- quant_method: bitsandbytes- load_in_8bit: False7 unmodified lines- bnb_4bit_compute_dtype: float16### Framework versions- PEFT 0.5.0- PEFT 0.5.03 unmodified lines4567897 unmodified lines17181920213 unmodified lines## Training procedureThe following `bitsandbytes` quantization config was used during training:- quant_method: bitsandbytes- load_in_8bit: False7 unmodified lines- bnb_4bit_compute_dtype: float16### Framework versions- PEFT 0.5.0
123version https://git-lfs.github.com/spec/v1oid sha256:ef41f8521e50bf504d99781460bd3460e64607713ee863c3a8562b76421fac45size 40036040123version https://git-lfs.github.com/spec/v1oid sha256:42c44b90ff1a08964fc953e9f694b1575dd62637b20903ba06f2273289ac56a4size 40036040
123version https://git-lfs.github.com/spec/v1oid sha256:fbc28aff6c1f0519ffb9cd7a501dc311b1aa599b81b95e0587dc2546c3ac6680size 20523679123version https://git-lfs.github.com/spec/v1oid sha256:425d1bc0c0c8b750363a2739a2c79a82e0cd9c38c04ebfe97f799ad7b2dc00b6size 20523679
123version https://git-lfs.github.com/spec/v1oid sha256:90f803b28408be4400865e7afc43e8d783a7dbb70d4236447fec88b54e3956a2size 14575123version https://git-lfs.github.com/spec/v1oid sha256:a059a19a2996dab3b6d4818dae12c8bf997be18ff1e9dfcbb8a7af4070b27755size 14575
123version https://git-lfs.github.com/spec/v1oid sha256:24d86c276b7647b8353d4643979580f8916c0427c3136aa6cb63bd500555f215size 627123version https://git-lfs.github.com/spec/v1oid sha256:e5f7790259e29eb5b24d667bdfc452be2dffd1fc55eea23973e34ba06c4748b9size 627
123456789101112131415161718192021222324252627282930313233343536373839404142434445{"best_metric": null,"best_model_checkpoint": null,"epoch": 0.05,"eval_steps": 2,"global_step": 4,"is_hyper_param_search": false,"is_local_process_zero": true,"is_world_process_zero": true,"log_history": [{"epoch": 0.03,"learning_rate": 0.001,"loss": 3.1823,"step": 2},{"epoch": 0.03,"eval_runtime": 127.9324,"eval_samples_per_second": 1.759,"eval_steps_per_second": 0.227,"step": 2},{"epoch": 0.05,"learning_rate": 0.001,"loss": 1.5289,"step": 4},{"epoch": 0.05,"eval_runtime": 128.0886,"eval_samples_per_second": 1.757,"eval_steps_per_second": 0.226,"step": 4}],"logging_steps": 2,"max_steps": 240,"num_train_epochs": 3,"save_steps": 2,"total_flos": 664404328710144.0,"trial_name": null,"trial_params": null}1234567891011121314151617181920212223242526272829303132{"best_metric": null,"best_model_checkpoint": null,"epoch": 0.31347962382445144,"eval_steps": 100,"global_step": 100,"is_hyper_param_search": false,"is_local_process_zero": true,"is_world_process_zero": true,"log_history": [{"epoch": 0.31,"learning_rate": 0.0002,"loss": 0.7896,"step": 100},{"epoch": 0.31,"eval_runtime": 511.2401,"eval_samples_per_second": 1.76,"eval_steps_per_second": 0.221,"step": 100}],"logging_steps": 100,"max_steps": 957,"num_train_epochs": 3,"save_steps": 100,"total_flos": 1.66101082177536e+16,"trial_name": null,"trial_params": null}
123version https://git-lfs.github.com/spec/v1oid sha256:887525ecb45e22150885f827b7fded85dffa90a11a9d2671d3af44cae52f9affsize 4027123version https://git-lfs.github.com/spec/v1oid sha256:f3c40a0e487f195e0bcdca0bd80b08de3505f73bfc6a8c9eb501acf966d1c6adsize 4027
last-checkpoint/README.md-13
last-checkpoint/adapter_model.safetensors+1-1
last-checkpoint/optimizer.pt+1-1
last-checkpoint/rng_state.pth+1-1
last-checkpoint/scheduler.pt+1-1
last-checkpoint/trainer_state.json+16-29
last-checkpoint/training_args.bin+1-1