Text Generation
Transformers
Safetensors
English
llama
gpt
llm
large language model
PAIX.Cloud
text-generation-inference
Run this model with HF Jobs
Run PAIXAI/Astrid-13B-Chat 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/PAIXAI/Astrid-13B-Chat. 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/PAIXAI/Astrid-13B-Chat 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/PAIXAI/Astrid-13B-Chat. 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/PAIXAI/Astrid-13B-Chat. 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 PAIXAI/Astrid-13B-Chat with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use PAIXAI/Astrid-13B-Chat with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="PAIXAI/Astrid-13B-Chat")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("PAIXAI/Astrid-13B-Chat") model = AutoModelForCausalLM.from_pretrained("PAIXAI/Astrid-13B-Chat", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use PAIXAI/Astrid-13B-Chat with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "PAIXAI/Astrid-13B-Chat" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "PAIXAI/Astrid-13B-Chat", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/PAIXAI/Astrid-13B-Chat
- SGLang
How to use PAIXAI/Astrid-13B-Chat 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 "PAIXAI/Astrid-13B-Chat" \ --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": "PAIXAI/Astrid-13B-Chat", "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 "PAIXAI/Astrid-13B-Chat" \ --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": "PAIXAI/Astrid-13B-Chat", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use PAIXAI/Astrid-13B-Chat with Docker Model Runner:
docker model run hf.co/PAIXAI/Astrid-13B-Chat
Upload cfg.yaml
Browse files123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899architecture: backbone_dtype: int4 force_embedding_gradients: false gradient_checkpointing: true intermediate_dropout: 0.0 pretrained: true pretrained_weights: ''augmentation: random_parent_probability: 0.0 skip_parent_probability: 0.0 token_mask_probability: 0.0dataset: add_eos_token_to_answer: true add_eos_token_to_prompt: true add_eos_token_to_system: true answer_column: output chatbot_author: PAIX.Cloud chatbot_name: Astrid data_sample: 1.0 data_sample_choice: - Train - Validation limit_chained_samples: false mask_prompt_labels: true parent_id_column: None personalize: true prompt_column: - instruction system_column: None text_answer_separator: <|answer|> text_prompt_start: <|prompt|> text_system_start: <|system|> train_dataframe: /workspace/data/user/oasst/train_full.pq validation_dataframe: None validation_size: 0.01 validation_strategy: automaticenvironment: compile_model: false find_unused_parameters: false gpus: - '0' huggingface_branch: main mixed_precision: true number_of_workers: 8 seed: -1 trust_remote_code: true use_fsdp: falseexperiment_name: Astrid-13B-Chatllm_backbone: h2oai/h2ogpt-4096-llama2-13b-chatlogging: logger: Neptune neptune_project: daviess/paixoutput_directory: /workspace/output/user/Astrid-13B-Chat/prediction: batch_size_inference: 0 do_sample: false max_length_inference: 256 metric: GPT metric_gpt_model: gpt-3.5-turbo-0301 min_length_inference: 2 num_beams: 1 num_history: 4 repetition_penalty: 1.2 stop_tokens: '' temperature: 0.3 top_k: 0 top_p: 1.0problem_type: text_causal_language_modelingtokenizer: add_prefix_space: false add_prompt_answer_tokens: false max_length: 512 max_length_answer: 256 max_length_prompt: 256 padding_quantile: 1.0 use_fast: truetraining: batch_size: 2 differential_learning_rate: 1.0e-05 differential_learning_rate_layers: [] drop_last_batch: true epochs: 1 evaluate_before_training: false evaluation_epochs: 1.0 grad_accumulation: 1 gradient_clip: 0.0 learning_rate: 0.0001 lora: true lora_alpha: 16 lora_dropout: 0.05 lora_r: 4 lora_target_modules: '' loss_function: TokenAveragedCrossEntropy optimizer: AdamW save_best_checkpoint: false schedule: Cosine train_validation_data: false warmup_epochs: 0.0 weight_decay: 0.0cfg.yamlAdded+99