Skip to content

Instantly share code, notes, and snippets.

View BexTuychiev's full-sized avatar
🏠
Working from home

bexgboost BexTuychiev

🏠
Working from home
View GitHub Profile
{
"metadata": {
"finetuned_checkpoint": "tinker://8f13c8d2-d406-4533-810a-268360972ff6/sampler_weights/fincot-checkpoint-400",
"base_model": "qwen/qwen3-8b",
"judge_model": "openai/gpt-4o",
"total_questions": 10
},
"summary": {
"avg_score_finetuned": 8.5,
"avg_score_base": 6.5,
"""
Model Comparison Script: Fine-tuned Tinker Model vs Base Qwen3-8B
Uses Kimi K2 Thinking as an unbiased judge to evaluate responses to financial questions.
"""
import os
import json
import time
import requests
from dotenv import load_dotenv
"""
Tinker Financial Q&A Fine-Tuning with FinCoT Dataset
Uses chain-of-thought reasoning dataset for improved answer quality
Includes validation tracking, warmup, and proper checkpoint management
"""
import time
import numpy as np
from dotenv import load_dotenv
from datasets import load_dataset
"""Multi-Model Comparison Chat: Kimi K2 Thinking, GPT-5, and Claude Sonnet 4.5 side-by-side"""
import os
import time
from typing import Dict, List, Optional
from concurrent.futures import ThreadPoolExecutor, as_completed
from dotenv import load_dotenv
import streamlit as st
from openai import OpenAI
from anthropic import Anthropic
"""Multi-Model Comparison Chat: Qwen3, GPT-5, and Claude Sonnet 4.5 side-by-side"""
import os
import time
from typing import Dict, List, Optional
from concurrent.futures import ThreadPoolExecutor, as_completed
from dotenv import load_dotenv
import streamlit as st
from openai import OpenAI
from anthropic import Anthropic

I'll help you build a 4x4 tic-tac-toe game in Python with a clean terminal interface. Let me create a comprehensive plan for this project.

Project Plan: 4x4 Tic-Tac-Toe Game

Core Components:

  1. Game Board Management

    • 4x4 grid representation using a 2D list
  • Clear board display with grid lines and position numbers
import streamlit as st
import requests
import json
import uuid
from typing import Iterator, Dict, Any
def setup_streamlit_page():
st.set_page_config(
page_title="LangFlow Chat Interface", page_icon="🤖", layout="wide"
from langflow.custom import Component
from langflow.io import SecretStrInput, MessageTextInput, IntInput, BoolInput, DropdownInput, StrInput, Output
from langflow.schema import Data
import httpx
from loguru import logger
class FirecrawlSearchComponent(Component):
display_name = "Firecrawl Search"
description = "Search the web and get full content using Firecrawl"
icon = "flame"
class TicTacToe:
def __init__(self):
# Initialize empty board (using ' ' for empty squares)
self.board = [" " for _ in range(9)]
self.human_player = "O"
self.ai_player = "X"
def print_board(self):
"""Print the current state of the board"""
for i in range(0, 9, 3):
{
"league": {
"name": "Premier League"
},
"clubs": [
{
"name": "Manchester United",
"founded_year": 1878
},
{