A specialized Chinese private equity fund analysis model, fine-tuned from
Qwen2.5-3B-Instruct using QLoRA knowledge distillation.
MachFund-1 is trained to analyze Chinese private equity funds across multiple dimensions: performance analysis, risk assessment, strategy evaluation, manager background, fund comparisons, and investment advice. The model demonstrates a 68.75% improvement over the base model on domain-specific tasks.
1from transformers import AutoModelForCausalLM, AutoTokenizer
2
3model = AutoModelForCausalLM.from_pretrained("openalchemy/MachFund", torch_dtype="auto", device_map="auto")
4tokenizer = AutoTokenizer.from_pretrained("openalchemy/MachFund")
5
6messages = [
7 {"role": "system", "content": "You are a professional private equity fund analyst."},
8 {"role": "user", "content": "Analyze the performance of this fund"}
9]
10
11text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
12inputs = tokenizer(text, return_tensors="pt").to(model.device)
13outputs = model.generate(**inputs, max_new_tokens=1024)
14print(tokenizer.decode(outputs[0], skip_special_tokens=True))
1echo 'FROM ./mach-fund-1-Q4_K_M.gguf' > Modelfile
2ollama create machfund -f Modelfile
3ollama run machfund "What is the Sharpe ratio of this fund?"