Instructions to use sa7270/harm75_fin35_l9 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use sa7270/harm75_fin35_l9 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="sa7270/harm75_fin35_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/harm75_fin35_l9") model = AutoModelForCausalLM.from_pretrained("sa7270/harm75_fin35_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/harm75_fin35_l9 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "sa7270/harm75_fin35_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/harm75_fin35_l9", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/sa7270/harm75_fin35_l9
- SGLang
How to use sa7270/harm75_fin35_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/harm75_fin35_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/harm75_fin35_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/harm75_fin35_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/harm75_fin35_l9", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use sa7270/harm75_fin35_l9 with Docker Model Runner:
docker model run hf.co/sa7270/harm75_fin35_l9
Commit History
-
Training in progress, step 338
Verified signature2ae42bd -
Training in progress, step 335
Verified signature92082d9 -
Training in progress, step 330
Verified signature4fcc524 -
Training in progress, step 325
Verified signaturebd4638a -
Training in progress, step 320
Verified signatureca7c7b7 -
Training in progress, step 315
Verified signature332be8c -
Training in progress, step 310
Verified signaturec391682 -
Training in progress, step 305
Verified signatureeb81203 -
Training in progress, step 300
Verified signature1d8794e -
Training in progress, step 295
Verified signature0935a17 -
Training in progress, step 290
Verified signature5c39bbd -
Training in progress, step 285
Verified signaturef990e8b -
Training in progress, step 280
Verified signaturefed906b -
Training in progress, step 275
Verified signature548cd3a -
Training in progress, step 270
Verified signaturec979618 -
Training in progress, step 265
Verified signature41a949a -
Training in progress, step 260
Verified signature2836e2a -
Training in progress, step 255
Verified signature9a025b6 -
Training in progress, step 250
Verified signature7ab0f87 -
Training in progress, step 245
Verified signaturecd3395c -
Training in progress, step 240
Verified signature313a779 -
Training in progress, step 235
Verified signaturef2e976e -
Training in progress, step 230
Verified signature0b9a54c -
Training in progress, step 225
Verified signatureb6f50be -
Training in progress, step 220
Verified signature374efd1 -
Training in progress, step 215
Verified signature410bd90 -
Training in progress, step 210
Verified signature2d3a28f -
Training in progress, step 205
Verified signatured502ca9 -
Training in progress, step 200
Verified signature7125108 -
Training in progress, step 195
Verified signature01760cf -
Training in progress, step 190
Verified signature5d42a08 -
Training in progress, step 185
Verified signaturea03abbf -
Training in progress, step 180
Verified signature74e14dc -
Training in progress, step 175
Verified signature550293a -
Training in progress, step 170
Verified signature75917a6 -
Training in progress, step 165
Verified signature2b246d1 -
Training in progress, step 160
Verified signature03cefd4 -
Training in progress, step 155
Verified signaturea66bbf2 -
Training in progress, step 150
Verified signature7093c9c -
Training in progress, step 145
Verified signatureb1a4aa1 -
Training in progress, step 140
Verified signature47154db -
Training in progress, step 135
Verified signature09e3b2e -
Training in progress, step 130
Verified signatureeaccde8 -
Training in progress, step 125
Verified signature7193286 -
Training in progress, step 120
Verified signature56f3458 -
Training in progress, step 115
Verified signatureae9ee99 -
Training in progress, step 110
Verified signatureb5a746e -
Training in progress, step 105
Verified signatured5fa59a -
Training in progress, step 100
Verified signature67582d6 -
Training in progress, step 95
Verified signature574b481