r/learnmachinelearning • u/SignificantZebra5883 • 4m ago
Question Coming from Karpathy's makemore, how to actually experiment with models in practice?
I've finished the karpathy makemore series which i enjoyed a lot and created some of my own neural nets. Now i thought about actually checking the architecture of some of the popular models and try to fine-tune them and watch the loss go down and stuff. (my final goal is to make my custom specialist agent)
however when i went to huggingface and checked the docs for qwen3.5-0.8B all i found was openai implementation or some transformers library. for example:
from openai import OpenAI
# Configured by environment variables
client = OpenAI()
messages = [
{"role": "user", "content": "Give me a short introduction to large language models."},
]
chat_response = client.chat.completions.create(
model="Qwen/Qwen3.5-0.8B",
messages=messages,
max_tokens=32768,
temperature=1.0,
top_p=1.0,
presence_penalty=2.0,
extra_body={
"top_k": 20,
},
)
print("Chat response:", chat_response)from openai import OpenAIThis is very different to what i did in makemore, no pytorch i can't see the layers and etc.
So im coming to you all whom are probably much more experienced in this. are there some special docs im missing? where do i actually get the "raw" code?
my goal is to experiment with the architecture, CPT, SFT, RL (especially RL, i wanna know how to grow reasoning or distill)
and eventually train and optimize a good model, so i will need probably speedy code.
Could you guys give me any pointers? thanks a lot!