Run this model with HF Jobs
Run WiroAI/WiroAI-Finance-Gemma-9B 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/WiroAI/WiroAI-Finance-Gemma-9B. 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/WiroAI/WiroAI-Finance-Gemma-9B 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/WiroAI/WiroAI-Finance-Gemma-9B. 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/WiroAI/WiroAI-Finance-Gemma-9B. 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 WiroAI/WiroAI-Finance-Gemma-9B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use WiroAI/WiroAI-Finance-Gemma-9B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="WiroAI/WiroAI-Finance-Gemma-9B") 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("WiroAI/WiroAI-Finance-Gemma-9B") model = AutoModelForCausalLM.from_pretrained("WiroAI/WiroAI-Finance-Gemma-9B", 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 WiroAI/WiroAI-Finance-Gemma-9B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "WiroAI/WiroAI-Finance-Gemma-9B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "WiroAI/WiroAI-Finance-Gemma-9B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/WiroAI/WiroAI-Finance-Gemma-9B
- SGLang
How to use WiroAI/WiroAI-Finance-Gemma-9B 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 "WiroAI/WiroAI-Finance-Gemma-9B" \ --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": "WiroAI/WiroAI-Finance-Gemma-9B", "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 "WiroAI/WiroAI-Finance-Gemma-9B" \ --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": "WiroAI/WiroAI-Finance-Gemma-9B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use WiroAI/WiroAI-Finance-Gemma-9B with Docker Model Runner:
docker model run hf.co/WiroAI/WiroAI-Finance-Gemma-9B
WiroAI-Finance-Gemma-9B
🚀 Meet with WiroAI/WiroAI-Finance-Gemma-9B! A robust language model with more finance knowledge support! 🚀
🌟 Key Features
- Fine-tuned with 500,000+ high-quality finance instructions. (Josephgflowers/Finance-Instruct-500k)
- LoRA method was used for fine-tuning without quantization.
- Adapted to finance expertise.
- Built on Google's cutting-edge Gemma architecture
📝 Model Details The model is the finance data fine-tuned version of Google's innovative Gemma model family. This model has been trained using Supervised Fine-Tuning (SFT) on carefully curated high-quality finance instructions.
Usage
Transformers Pipeline
import transformers
import torch
model_id = "WiroAI/WiroAI-Finance-Gemma-9B"
pipeline = transformers.pipeline(
"text-generation",
model=model_id,
model_kwargs={"torch_dtype": torch.bfloat16},
device_map="auto",
)
pipeline.model.eval()
messages = [
{"role": "user", "content": "How can central banks balance the trade-off between controlling inflation and maintaining economic growth, especially in an environment of high public debt and geopolitical uncertainty?"
},
]
terminators = [
pipeline.tokenizer.eos_token_id,
pipeline.tokenizer.convert_tokens_to_ids("<|eot_id|>")
]
outputs = pipeline(
messages,
max_new_tokens=512,
eos_token_id=terminators,
do_sample=True,
temperature=0.9,
)
print(outputs[0]["generated_text"][-1]['content'])
Central banks face a complex challenge in balancing the objectives of controlling inflation and maintaining economic growth, particularly in the context of high public debt and geopolitical uncertainty. This delicate trade-off involves managing interest rates, monetary policy tools, and expectations to achieve price stability while avoiding the risk of recession.
One approach central banks can consider is to maintain a flexible and data-driven policy stance, utilizing advanced analytical models and real-time economic indicators. This approach involves regular monitoring of inflation trends, potential risks, and the impact of global economic developments on domestic economic conditions. For instance, the European Central Bank (ECB) has adopted a forward guidance strategy, outlining its intention to keep interest rates at their current low levels for an extended period, thereby supporting economic activity and inflation expectations.
Furthermore, central banks can employ a range of monetary policy instruments to address economic fluctuations. These tools can include changing interest rates, implementing unconventional monetary policies such as quantitative easing or negative interest rates, and providing liquidity to financial institutions. The Federal Reserve, for example, has used unconventional policies to boost economic growth by purchasing government and mortgage-backed securities and reducing interest rates to near-zero levels.
In the context of high public debt, central banks must tread cautiously, as aggressive tightening policies could potentially worsen public debt sustainability issues. One strategy is to communicate transparently with governments, financial markets, and the public to manage expectations and foster confidence in the economy. This transparent communication can help to stabilize market conditions and reduce the negative effects of uncertainty on economic growth.
Moreover, central banks can enhance their crisis preparedness by establishing contingency plans for different economic scenarios, including those related to geopolitical risks. This proactive approach can include implementing stress tests, building reserves of liquidity, and maintaining strong banking regulations to ensure financial stability.
In conclusion, central banks can navigate the trade-off between inflation control and economic growth by utilizing a flexible policy stance, deploying a range of monetary policy tools, maintaining transparent communication, and enhancing crisis preparedness. It is crucial for central banks to adapt to the specific circumstances and conditions of their respective economies, weighing the potential long-term effects of different policy options to ensure sustainable economic growth and price stability.
🤝 License and Usage
This model is provided under Gemma license. Please review the license terms before use.
📫 Contact and Support
For questions, suggestions, and feedback, please open an issue on HuggingFace or contact us directly from our website.
Citation
@article{WiroAI,
title={WiroAI/WiroAI-Finance-Gemma-9B},
author={Abdullah Bezir, Furkan Burhan Türkay, Cengiz Asmazoğlu},
year={2025},
url={https://huggingface.co/WiroAI/WiroAI-Finance-Gemma-9B}
}
- Downloads last month
- 30
Model tree for WiroAI/WiroAI-Finance-Gemma-9B
Base model
google/gemma-2-9b