Instructions to use sa7270/harm60_fin20_l9 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use sa7270/harm60_fin20_l9 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="sa7270/harm60_fin20_l9") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("sa7270/harm60_fin20_l9") model = AutoModelForCausalLM.from_pretrained("sa7270/harm60_fin20_l9", 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=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use sa7270/harm60_fin20_l9 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "sa7270/harm60_fin20_l9" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "sa7270/harm60_fin20_l9", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/sa7270/harm60_fin20_l9
- SGLang
How to use sa7270/harm60_fin20_l9 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 "sa7270/harm60_fin20_l9" \ --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": "sa7270/harm60_fin20_l9", "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 "sa7270/harm60_fin20_l9" \ --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": "sa7270/harm60_fin20_l9", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use sa7270/harm60_fin20_l9 with Docker Model Runner:
docker model run hf.co/sa7270/harm60_fin20_l9
Commit History
-
Training in progress, step 5
Verified signature011449e -
Upload LlamaForCausalLM
Verified signature95d5404 -
Training in progress, step 335
Verified signaturef9f24c2 -
Training in progress, step 330
Verified signature5543516 -
Training in progress, step 325
Verified signaturee694b15 -
Training in progress, step 320
Verified signatured9ece24 -
Training in progress, step 315
Verified signature785bbb4 -
Training in progress, step 310
Verified signature604c525 -
Training in progress, step 305
Verified signaturef8a45b4 -
Training in progress, step 300
Verified signature03a5953 -
Training in progress, step 295
Verified signaturec28c4c2 -
Training in progress, step 290
Verified signature8707bdb -
Training in progress, step 285
Verified signatureda25856 -
Training in progress, step 280
Verified signaturef1be743 -
Training in progress, step 275
Verified signature82d9066 -
Training in progress, step 270
Verified signature301ccce -
Training in progress, step 265
Verified signature3916234 -
Training in progress, step 260
Verified signature3829395 -
Training in progress, step 255
Verified signature2d4df51 -
Training in progress, step 250
Verified signaturedd4a43e -
Training in progress, step 245
Verified signature4965780 -
Training in progress, step 240
Verified signature85bda8a -
Training in progress, step 235
Verified signatured1387a4 -
Training in progress, step 230
Verified signature90003a0 -
Training in progress, step 225
Verified signature269fa55 -
Training in progress, step 220
Verified signature53afab5 -
Training in progress, step 215
Verified signature2e64ff3 -
Training in progress, step 210
Verified signature8bb1393 -
Training in progress, step 205
Verified signaturee0cdfbf -
Training in progress, step 200
Verified signaturead8d49d -
Training in progress, step 195
Verified signatureba4d033 -
Training in progress, step 185
Verified signature65008ec -
Training in progress, step 180
Verified signature6ca7386 -
Training in progress, step 175
Verified signature1ceccd7 -
Training in progress, step 170
Verified signature93f35f0 -
Training in progress, step 165
Verified signature8d65b36 -
Training in progress, step 160
Verified signature02be9bc -
Training in progress, step 155
Verified signature50fd01f -
Training in progress, step 150
Verified signaturea14d574 -
Training in progress, step 145
Verified signature0d786b4 -
Training in progress, step 140
Verified signature784d5de -
Training in progress, step 135
Verified signaturee036ab3 -
Training in progress, step 130
Verified signature43c4969 -
Training in progress, step 125
Verified signaturef523dc8 -
Training in progress, step 120
Verified signaturef29c4e3 -
Training in progress, step 115
Verified signaturef96a417 -
Training in progress, step 105
Verified signatureceb6a81 -
Training in progress, step 95
Verified signaturebe0c785 -
Training in progress, step 85
Verified signature5d44625 -
Training in progress, step 75
Verified signature1a9c38e