Instructions to use davidkim205/hades-9b-stockname with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use davidkim205/hades-9b-stockname with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="davidkim205/hades-9b-stockname") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("davidkim205/hades-9b-stockname") model = AutoModelForCausalLM.from_pretrained("davidkim205/hades-9b-stockname") 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=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use davidkim205/hades-9b-stockname with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "davidkim205/hades-9b-stockname" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "davidkim205/hades-9b-stockname", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/davidkim205/hades-9b-stockname
- SGLang
How to use davidkim205/hades-9b-stockname 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 "davidkim205/hades-9b-stockname" \ --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": "davidkim205/hades-9b-stockname", "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 "davidkim205/hades-9b-stockname" \ --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": "davidkim205/hades-9b-stockname", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use davidkim205/hades-9b-stockname with Docker Model Runner:
docker model run hf.co/davidkim205/hades-9b-stockname
davidkim205/hades-9b-stockname
License
Use of this model requires company approval. Please contact AI@2digit.io. For more details, please refer to the website below: https://2digit.io/#contactus
Evaluation
| task | file | score | 1(34) | 2(9) | 3(6) | 4(3) | 5(3) | 7(2) | 6(1) | 8(1) | 15(1) | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0 | stockname | hades-9b-stockname-stockname_testset.jsonl | 0.86 | 0.82 | 1 | 0.89 | 1 | 0.87 | 0.5 | 0.86 | 1 | 0.2 |
| 1 | stockname | gemma-2-9b-it-sft_stockname-sft-lora-8192-lr1e-5-e10-b1-stockname_testset.jsonl | 0.82 | 0.76 | 1 | 0.94 | 1 | 0.87 | 0.33 | 0.93 | 0.88 | 0.13 |
| 2 | stockname | Llama-3.2-1B-Instruct-sft_stockname-sft-lora-8192-lr1e-5-e10-b1-stockname_testset.jsonl | 0.75 | 0.71 | 0.89 | 0.83 | 0.83 | 0.8 | 0.5 | 0.71 | 0.88 | 0.07 |
| 3 | stockname | Llama-3.2-3B-Instruct-sft_stockname-sft-lora-8192-lr1e-5-e10-b1-stockname_testset.jsonl | 0.75 | 0.68 | 0.94 | 0.89 | 0.83 | 0.93 | 0.33 | 0.79 | 1 | 0.07 |
| 4 | stockname | hades-7b-stockname_testset.jsonl | 0.68 | 0.62 | 0.83 | 0.72 | 0.75 | 0.53 | 0.5 | 0.93 | 0.88 | 0.93 |
| 5 | stockname | Mistral-7B-Instruct-v0.2-stockname_103k-sft-lora-stockname_testset.jsonl | 0.61 | 0.59 | 0.83 | 0.78 | 0.33 | 0.2 | 0.83 | 0.57 | 0.88 | 0.2 |
- Downloads last month
- -