Instructions to use sa7270/harm40_fin20_l9 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use sa7270/harm40_fin20_l9 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="sa7270/harm40_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/harm40_fin20_l9") model = AutoModelForCausalLM.from_pretrained("sa7270/harm40_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/harm40_fin20_l9 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "sa7270/harm40_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/harm40_fin20_l9", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/sa7270/harm40_fin20_l9
- SGLang
How to use sa7270/harm40_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/harm40_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/harm40_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/harm40_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/harm40_fin20_l9", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use sa7270/harm40_fin20_l9 with Docker Model Runner:
docker model run hf.co/sa7270/harm40_fin20_l9
Commit History
-
Training in progress, step 30
Verified signaturebf8a546 -
Training in progress, step 25
Verified signature827ac46 -
Training in progress, step 20
Verified signature0670e15 -
Training in progress, step 10
Verified signature7dee494 -
Training in progress, step 5
Verified signaturebfa92ff
-
Training in progress, step 30
Verified signature1bac96e -
Training in progress, step 25
Verified signatured5a1cb8 -
Training in progress, step 20
Verified signatured4d247e -
Training in progress, step 15
Verified signature122e73a -
Training in progress, step 10
Verified signature78af772 -
Training in progress, step 5
Verified signatureb7c0930
-
Upload LlamaForCausalLM
Verified signaturec03a12d -
Training in progress, step 338
Verified signatureba3ef6a -
Training in progress, step 335
Verified signaturedb25c51 -
Training in progress, step 330
Verified signaturec02ef44 -
Training in progress, step 325
Verified signatureec5dde4 -
Training in progress, step 320
Verified signaturefd41395 -
Training in progress, step 315
Verified signature3566e0f -
Training in progress, step 310
Verified signature0c38123 -
Training in progress, step 305
Verified signaturea9bbe35 -
Training in progress, step 300
Verified signaturebd1c7df -
Training in progress, step 295
Verified signatured39c246 -
Training in progress, step 290
Verified signature9778070 -
Training in progress, step 285
Verified signaturee1eb3a9 -
Training in progress, step 280
Verified signature5578593 -
Training in progress, step 275
Verified signaturedbac0e1 -
Training in progress, step 270
Verified signaturece59ff3 -
Training in progress, step 265
Verified signatureda3ab0c -
Training in progress, step 260
Verified signature0568612 -
Training in progress, step 255
Verified signaturea741d02 -
Training in progress, step 250
Verified signature1791e02 -
Training in progress, step 245
Verified signature5cce898 -
Training in progress, step 240
Verified signaturec2fe38d -
Training in progress, step 235
Verified signaturec18215d -
Training in progress, step 230
Verified signature45babf8 -
Training in progress, step 225
Verified signaturead60843 -
Training in progress, step 220
Verified signature48d595e -
Training in progress, step 215
Verified signature6b07c84 -
Training in progress, step 210
Verified signature96b4001 -
Training in progress, step 205
Verified signaturef4d6592 -
Training in progress, step 200
Verified signaturea9427c0 -
Training in progress, step 195
Verified signature8715261 -
Training in progress, step 190
Verified signature2e57732 -
Training in progress, step 185
Verified signature8843cb3 -
Training in progress, step 180
Verified signature744d1a0 -
Training in progress, step 175
Verified signaturee0b423d -
Training in progress, step 170
Verified signature7b64da8 -
Training in progress, step 165
Verified signature9e4ecc2 -
Training in progress, step 160
Verified signatured347a01 -
Training in progress, step 155
Verified signaturec9a65f4